easywall
easywall copied to clipboard
Doesn't apply POSTROUTING from custom rules
Hello Tried to apply some nat rules with pre and post routing.
Only the prerouting gets applied to the iptables
EXAMPLE:
-A FORWARD -o virbr0 -d 192.168.122.200 -j ACCEPT
-t nat -A PREROUTING -p tcp --dport 63333 -j DNAT --to 192.168.122.200:64738
-t nat -A POSTROUTING -j MASQUERADE
-t nat -A POSTROUTING -s 192.168.122.0/24 -j MASQUERADE
-t nat -A POSTROUTING -s 10.8.0.0/24 -o virbr0 -j MASQUERADE
This only applyes the forward and prerouting from the custom rules section.
Can somebody help or would it be possible to add multiple custom rules to different points of the iptable generation?
Maybe they get overwriten by other rules which I can't see.
Thanks for the help.