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

Custom rule not written correctly to file #4

Open
peperunas opened this issue Oct 31, 2020 · 0 comments
Open

Custom rule not written correctly to file #4

peperunas opened this issue Oct 31, 2020 · 0 comments

Comments

@peperunas
Copy link

Hello,
it seems that mignis is not writing correctly a custom rule to file.

This is my mignis config file:

(.. snip ..)
CUSTOM
-A PREROUTING -t nat -i wan ! -s 10.0.0.0/24 -p udp --dport 53 -j DNAT --to-destination 10.0.0.1:9999

The rule is missing a space in the iptables rules' file:

(.. snip ..)
-A PREROUTING-i wan ! -s 10.0.0.0/24 -p udp --dport 53 -j DNAT --to-destination 10.0.0.1:9999

Adding an additional space after -t nat didn't solve the issue.

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