ip tables basic question

derkadinal

New Member
Joined
Aug 17, 2020
Messages
2
Reaction score
0
Credits
32
Hello,

I have the following setup:

Machine A: (wireguard VPN server )

Interfaces: wg0, eth0
Addresses: wg0 10.1.0.1
eth0 10.2.0.10

Machine B: (connects to VPN server)

Interfaces: wg0, wth0
Adresses: wg0 10.1.0.2
eth0 10.2.0.20

These pings work:
Machine B -> A: (pinging 10.1.0.1 and 10.2.0.10)
Machine A -> B (only 10.1.0.2)

This doesn't work:
Machine A -> B when pinging 10.2.0.20

This is the routing tabe:


Destination Gateway Genmask FlagsMetricRef Use Iface
default 10.2.0.1 0.0.0.0 UG 000eth0
10.1.0.0 *255.255.0.0U000wg0
10.2.0.0*255.255.0.0U000eth0


What I have noticed is that, when pining 10.2.0.20 the arp request only goes to eth0 and never to wg0.
I have tried to add a rule for the specifc IP adress 10.2.0.20 but it didn't help.

What am I missing?

BR
 

Staff online

Members online


Latest posts

Top