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!

Openvpn client and ip rule.

Odkrys

Senior Member
Sorry to make another openvpn related thread.

My problem is clear.

1. Normal boot (without vpn client) + start Openvpn client manually = tunnel doesn't work

2. Set Start with WAN, Redirect Internet traffic to No or ALL and reboot = also tunnel doesn't work

In the situation, ip rule is like this

0: from all lookup local
32765: from all fwmark 0x1/0x1 lookup wan0
32766: from all lookup main
32767: from all lookup default

and if I remove 2nd rule, now tunnel works.

ip rule del from all fwmark 0x1/0x1 lookup wan0


I'm not expert at routing. Is this expected ?

from all fwmark 0x1/0x1 lookup wan0

This rule seems interrupt to work my vpn tunnel.



sometimes, ip rule is like this and tunnel works properly

0: from all lookup local
10101: from 192.168.0.1/24 lookup ovpnc1
32766: from all lookup main
32767: from all lookup default

Edit : 10101: from 192.168.0.1/24 lookup ovpnc1 is up when I set the policy rules. :D
This is the only way to make my openvpn client working in GUI.
Set Redirect Internet traffic to Policy Rules then add 192.168.1.0/24 to VPN and reboot.
 
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