What's new
  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

Need help with iptables

FalconB

Regular Contributor
Hi,

Scratching my head trying to configure iptables and need some advise.

Setup:
  • RT-AC68U
  • Router IP: 192.168.1.1
  • Running DNScrypt on router, hence all devices point to router IP (192.168.1.1) for DNS
  • Router running OVPN server with IP range: 192.168.10.0/24, ie OVPN client 1 gets IP address 192.168.10.2
Everything is working as it should. I can connect through the VPN and surf the web as if I were surfing from within my LAN, without DNS leaking. Yay!

However, I want to restrict the OVPN-clients from reaching any LAN-devices. But, since I use DNScrypt, they still need to access the DNS-server, ie my router, on port 53 (right?).

From my understanding this can be done through the OVPN server settings in combination with iptables, but I'm a novice in that area and need help configuring it.

Any help appreciated!
 

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Back
Top