Skip to content
This repository has been archived by the owner on Aug 15, 2023. It is now read-only.

Doesn't apply POSTROUTING from custom rules #57

Open
Akantor47 opened this issue Mar 4, 2023 · 0 comments
Open

Doesn't apply POSTROUTING from custom rules #57

Akantor47 opened this issue Mar 4, 2023 · 0 comments

Comments

@Akantor47
Copy link

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant