What's new

Solved No ping on WG - BUG?

  • 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!

Exactly. To recap for everybody, if you are experiencing a situation where:

1. You are running a WireGuard VPN (let's say wgc4)
2. You cannot connect to the internet from the router local interface via wgc4 (e.g. via a script or if you ssh into your local router)
3. The problem may be due to the setting of your /proc/sys/net/ipv4/conf/wgc4/rp_filter
4. you can read the filter value with a
Code:
cat /proc/sys/net/ipv4/conf/wgc4/rp_filter
5. If the filter value is 1 it means that Wireguard is blocking an external connection from reaching your internal router interface.

6. You have two main ways of fixing this.

a. set the filter value to 2.

Code:
echo 2 > /proc/sys/net/ipv4/conf/wgc4/rp_filter

(this will reset after a boot)

b. set a rule on VPNdirector, like this:

Code:
Interface: WGC4
Description    Whatever you want
Local IP    <your WireGuard local IP address>
Remote IP    <leave blank>

7. Your WireGuard local IP address can be found with:

Code:
Ifconfig wgc4

or in your router's WireGuard config interface, it should start with 10.

Credits and many thanks to: @ZebMcKayhan
 

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!

Members online

Top