Can't reach other machines through VPN on Amazon EZ2

NS7 Amazon EC2.
I did the installation with NS7 and the openvpn-roadwarrior is running perfectly, however, I can’t reach other machines within the network through my VPN client. I have two Subnets 10.20.1.0/24 and 10.20.2.0/24, I put (push “route 10.20.0.0 255.255.255.0” and push “route 10.20.1.0 255.255.255.0”) in the configuration file and everything looks normal. Has anyone been successful with this?

@support_team
Can somebody help here?

@Francenildo, @m.traeumner

Hi Francenildo & Michael

I think I see a small misconfiguration here…

Two Subnets:
10.20.1.0/24
10.20.2.0/24

Pushed Route:
10.20.0.0 255.255.255.0 = 10.20.0.0/24 (<- This seems to be an error!)

The pushed route uses a mask which EXCLUDES both subnets above.
If a route is required, which covers BOTH subnets, you would need to use the following:

Pushed Route:
10.20.0.0 255.255.0.0 = 10.20.0.0/16 (<- This covers BOTH Subnets!)

Hope this helps!

My 2 cents
Andy

It wasn’t that, I solved it in another way, just typed wrong above.

1 Like

I resolved by placing this rule in / etc / shorewall / started
Ip of my internal EC2.
/ sbin / iptables -t nat -A POSTROUTING -s 10.8.0.0/23! -d 10.8.0.0/23 -j SNAT --to $ ip

Could you mark this topic as solved please.

1 Like