Hi all,
You know me, have been fighting routers for a long time.
Finally cracked it. There is so much crap around, from opensource to expensive.
They all fail, and it’s so stupid they fail! It makes no sense.
BTW, I’m using OpenWRT now, it fails too by default!!! Yes it does. But here is what I changed:
I started to change the flood parameters, as they are bad:
/etc/sysctl.conf
net.netfilter.nf_conntrack_acct=1
net.netfilter.nf_conntrack_checksum=0
net.netfilter.nf_conntrack_tcp_timeout_established=7440
net.netfilter.nf_conntrack_udp_timeout=15
net.netfilter.nf_conntrack_udp_timeout_stream=180
net.netfilter.nf_conntrack_max=524288
net.nf_conntrack_max = 524288
This makes the tracking a lot bigger then the default. I never seen more then 60K.
Then the Firewall /etc/config/firewall edit it:
config defaults
option input 'REJECT'
option output 'ACCEPT'
option forward 'REJECT'
option synflood_rate '2500/s'
option synflood_burst '5000'
option flow_offloading '1'
the default is 25/s, not going to work!
config redirect
option dest 'lan'
option target 'DNAT'
option name 'NTP'
list proto 'udp'
option src 'wan'
option src_dport '123'
option dest_ip '192.168.1.50'
option dest_port '123'
Last part for the firewall, make a rule:
config rule
option src 'wan'
option dest 'lan'
option name 'NTP-no-tacking'
list proto 'udp'
option src_port '123'
list dest_ip '192.168.1.50'
option dest_port '123'
option target 'NOTRACK'
option enabled '1'
That makes tracking impossible. So it doesn’t take much table space.
Not much more you need to do.
At the moment it’s kicking a whopping 40K connections, no sweat at all.
Any NUC with 2GB ram will do.
Also important!
Enjoy. And I hope I didn’t forget anything. It works for me, and it can NAT a lot!
Most routers fail, no joke, a lot fail.
I’m testing…but it seems to handle just fine.










