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

Can you add arbitrary iptables rules in the config? #591

Open
thormj opened this issue Oct 13, 2020 · 1 comment
Open

Can you add arbitrary iptables rules in the config? #591

thormj opened this issue Oct 13, 2020 · 1 comment

Comments

@thormj
Copy link

thormj commented Oct 13, 2020

To make it so it works when offline, I'd like to make it so that pre-authenticated users have special rules like:
iptables -A ndsRTR -p udp -m udp --dport 53 -j DNAT --to-destination 192.168.10.1:55555
iptables -A ndsRTR -p udp -m tcp --dport 53 -j DNAT --to-destination 192.168.10.1:55555

I thought I could use the redirect for port 80 as an example, but... that's not in the configuration file.

And, of course, once authenticated, their DNS is free to go about their business.
I have a python script (for now) hanging on TCP/UDP 55555 that returns 192.168.10.1 for all queries with a TTL of 5 seconds.

Would solve offline operation and iodining....

@bluewavenet
Copy link
Contributor

@thormj
See my reply to you at #154

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

2 participants