Page 1 of 1
How to convert iptables rules to eztables?
Posted: Thu Mar 24, 2022 9:39 pm
by Neo_78
FatDog uses eztables as a "frontend" for iptables, which is supposed to be easy to configure (but not entirely clear to me... )
https://github.com/louwrentius/eztables
The problem is once you have eztables started and running, FatDog will ignore generic iptables rules entered from the command line. So it looks like you have to make your configuration in eztables.cfg.
How would you translate the following rule into "eztables speak"?
iptables -A INPUT -s 192.168.100.1 -j DROP
Thanks for your feedback!
Re: How to convert iptables rules to eztables?
Posted: Thu Mar 24, 2022 11:05 pm
by user1111
Menu, System, Fatdog help (or help icon if its still on your desktop) and in the search box type eztables ... and the help section is detailed.
Something like
deny_out sourceIP dest_IP source_port dest_port
format, so perhaps ... (untested)
ROUTERIP=192.168.100.1
ROUTERPORT="
8080/udp
8080/tcp
"
deny_out any "$ROUTERIP" any "$ROUTERPORT"
Re: How to convert iptables rules to eztables?
Posted: Fri Mar 25, 2022 12:25 am
by Neo_78
That was spot on. The only router port that would have to be added in my case is 80/tcp. Thanks so much!