How to convert iptables rules to eztables?

versatile 64-bit multi-user Linux distribution

Moderators: kirk, jamesbond, p310don, JakeSFR, step, Forum moderators

Post Reply
Neo_78
Posts: 407
Joined: Wed Dec 29, 2021 10:45 pm
Has thanked: 232 times
Been thanked: 11 times

How to convert iptables rules to eztables?

Post 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!

user1111

Re: How to convert iptables rules to eztables?

Post 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"

Neo_78
Posts: 407
Joined: Wed Dec 29, 2021 10:45 pm
Has thanked: 232 times
Been thanked: 11 times

Re: How to convert iptables rules to eztables?

Post by Neo_78 »

That was spot on. :thumbup: The only router port that would have to be added in my case is 80/tcp. Thanks so much!

Post Reply

Return to “FatDog64”