大网数据广告活动
服务器运维问答

Stop Ubiquiti ICMP restrictions (two concurrent pings at once from same host for traceroute)

· 52CE 我爱测

How do I change the Ubiquiti Security Gateway's default icmp restrictions from inside the LAN? It seems that my Ubiquiti Security Gateway's default settings will drop icmp packets if I'm doing more than one traceroute at a time, …

问题原文

原帖链接 · Michael Altfield · CC BY-SA 4.0

How do I change the Ubiquiti Security Gateway's default icmp restrictions from inside the LAN?

It seems that my Ubiquiti Security Gateway's default settings will drop icmp packets if I'm doing more than one traceroute at a time, but I can't find any setting anywhere in the Ubiquiti Controller's wui nor the Security Gateway's firewall rules that look like they're limiting icmp.

For example, when monitoring network issues, I like to kick-off a few simultaneous traceroutes to popular ping farms. Below I kick one off to Google's 8.8.8.8 and CloudFlare's 1.1.1.1 at the same time -- with the ping to Google in a terminal just below the ping to CloudFlare.

Note that the first traceroute has 100% packet loss from my Ubiquiti Security Gateway (ubnt) while the one below it has 0% packet loss. If I stop the traceroute on the bottom, then the other traceroute immediately goes from 100% packet loss to 0% packet loss. So this seems like some kind of overly sensitive icmp flood protection or rate limiting.

Where is this set in the Ubiquity Controller? How can I tune these icmp limits on the LAN to be something more sane?

已采纳解答

原帖链接 · Chris Buechler · CC BY-SA 4.0

You're hitting the rate limiting of generation of ICMP error responses, which is set to Linux's default of 1 per second.

That's controlled by sysctl net.ipv4.icmp_ratelimit, which is the number of ms between permitted ICMP error responses. The default 1000 is 1/sec. Set it to something lower like 100 for 10 per second via SSH to USG: sudo sysctl net.ipv4.icmp_ratelimit=100

It's not controller-configurable even in config.gateway.json. Appending it to a file or adding new file in /etc/sysctl.d/ will make it persistent other than across firmware upgrades.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2020-12-31)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。