Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DNAT/SNAT? #77

Open
dragon2611 opened this issue Sep 28, 2019 · 2 comments
Open

DNAT/SNAT? #77

dragon2611 opened this issue Sep 28, 2019 · 2 comments

Comments

@dragon2611
Copy link

I might just be missing it, but how do you use the DNAT/SNAT functions as I don't see the paramater to set the DNAT/SNAT Target for the translated packet

@dragon2611
Copy link
Author

I did have a go at modifying rules.pp and whilst I could get the module to parse the new variables I'd defined I couldn't get it to only do it for IPv4, which ended up trying to put an IPv4 NAT rule in ip6tables.

@dragon2611
Copy link
Author

dragon2611 commented Sep 28, 2019

The idea I was trying to implement was to add snatip and dnattarget and then change the logic for the SNAT and DNAT action to make use of them.

Because the way the tables are setup however all I ever managed to do was insert the rule in iptables and ip6tables causing the latter to fail since you can't specify an IPv4 destination in an IPv6 firewall

I did try looking at the logic for daddr/saddr and re-using ipfilter but I didn't manage it and I'm not even sure if that's where I should have been looking.

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

No branches or pull requests

1 participant