hmm Please check out how do i set. because its not working
This is a test network with esxi. GW 192.168.6.1 not exist.
CLIENT(192.168.1.1/24) --- (192.168.1.72/24) EFW1 (192.168.6.72) --- (192.168.6.71) EFW2 ( 192.168.1.71/24) --- Client(192.168.1.153/24)
Default configured Endians 2.4, no extra settings.. only just all allowed outgoing firewall etc.
EFW1:
-Enabled OpenVPN with one user
EFW2:
-Gw2Gw established to EFW1 bridged to GREEN
EFW1(in ssh):
route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.6.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 br0
0.0.0.0 192.168.6.1 0.0.0.0 UG 0 0 0 eth1
-able ping 192.168.1.71
-cant ping 192.168.1.153
-can ping 192.168.1.1
in EFW2:
route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.6.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 br0
0.0.0.0 192.168.6.1 0.0.0.0 UG 0 0 0 eth1
-able ping 192.168.1.72
-cant ping 192.168.1.1
-can ping 192.168.1.153
192.168.1.153 cant ping 192.168.1.1
-and if i run "tcpdump src host 192.168.1.153" when pinging i see this:
20:18:42.586765 arp who-has 192.168.1.1 tell 192.168.1.153
20:18:43.586865 arp who-has 192.168.1.1 tell 192.168.1.153
20:18:44.587448 arp who-has 192.168.1.1 tell 192.168.1.153
Both endian: I added you suggested lines.
cat /etc/sudoers | grep 'openvpn'
nobody ALL=NOPASSWD: /usr/bin/openvpn-user
nobody ALL=NOPASSWD: /usr/local/bin/restartopenvpnclients.py
nobody ALL=NOPASSWD: /etc/init.d/openvpnclient
nobody ALL=NOPASSWD: /usr/local/bin/restartopenvpn.py
openvpn ALL=NOPASSWD: /usr/local/bin/updatednsmasq.py
openvpn ALL=NOPASSWD: /usr/local/bin/setsnat.py
openvpn ALL=NOPASSWD: /usr/local/bin/setvpnfw.py
openvpn ALL=NOPASSWD: /usr/local/bin/setrouting.py
openvpn ALL=NOPASSWD: /usr/local/bin/setpolicyrouting.py
openvpn ALL=NOPASSWD: /usr/local/bin/remoteroute.py
openvpn ALL=NOPASSWD: /usr/local/bin/setdnat.py