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!

iptables / vpn

bilboSNB

Senior Member
For clients I have set to go through the vpn I have a rule such as the below to stop their traffic going via the normal wan as I do not 100% trust the vpn policy routing/myself to stop them


iptables -A FORWARD -o ppp0 -s 192.168.0.25 -j DROP


however I have this rule under vpn policy routing: src 0.0.0.0 dest: 212.58.224.0/19 wan


My question is what rule do I need to add to allow 192.168.0.25 and all other clients traffic to 212.58.224.0/19 over the wan (ppp0) whilst still blocking all other traffic as per the rule above?


Iptables –A FORWARD –d 212.58.224.0/19 –j ACCEPT ?? and does it need to run before or after the drop rule?


Many thanks
 
Last edited:

Similar threads

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