VPN IP 10.10.0.0 / 24
VPN Server 10.10.0.1 / 24
VPN Client 10.10.0.6 / 24
All IP / PC from both network can ping each other.
OpenVpn Server can access the samba on the Remote Office B
OpenVpn Client can access the samba on the Main Office A
Please help and guide me
Why my Desktop Clients cannot access the opposite side Samba on both direction.
Office A Clients cannot access Samba on Office B
Office B Clients cannot access Samba on Office A
Any idea or suggestions?
Here are my configs
Server Config
port XXXX
proto udp
dev tun
ca /etc/openvpn/server/ca.crt
cert /etc/openvpn/server/server.crt
key /etc/openvpn/server/server.key
dh /etc/openvpn/server/dh.pem
server 10.10.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
push "route 192.168.100.0 255.255.255.0"
push "route 192.168.101.0 255.255.255.0"
keepalive 10 120
comp-lzo
ping-timer-rem
persist-key
persist-tun
mute-replay-warnings
daemon
client-to-client
client-config-dir /etc/openvpn/client-configs
route 192.168.101.0 255.255.255.0
status openvpn-status.log
verb 3
crl-verify /etc/openvpn/easy-rsa/3.0/pki/crl.pem
log openvpn.log
******************************************************************
Client-Configs
iroute 192.168.101.0 255.255.255.0
******************************************************************
Server Route
Destination Gateway Genmask Flags Metric Ref Use Iface
default 192.168.100.99 0.0.0.0 UG 1024 0 0 enp2s0
10.10.0.0 10.10.0.2 255.255.255.0 UG 0 0 0 tun0
10.10.0.2 0.0.0.0 255.255.255.255 UH 0 0 0 tun0
192.168.100.0 0.0.0.0 255.255.255.0 U 0 0 0 enp2s0
192.168.101.0 10.10.0.2 255.255.255.0 UG 0 0 0 tun0
******************************************************************
Iptables
-A FORWARD -s 10.10.0.0/24 -d 192.168.100.0/24 -i tun0 -o enp2s0 -m conntrack --ctstate NEW -j ACCEPT
-A FORWARD -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
-A POSTROUTING -s 10.10.0.0/24 -o enp2s0 -j MASQUERADE
******************************************************************
IP FORWARD
net.ipv4.ip_forward = 1
Client Config
client
dev tun
proto udp
remote x.x.x.x XXXX
resolv-retry infinite
nobind
persist-key
persist-tun
comp-lzo
verb 3
ca /etc/openvpn/client/ca.crt
cert /etc/openvpn/client/client.crt
key /etc/openvpn/client/client.key
status openvpn-status.log
log openvpn.log
******************************************************************
Client Route
Destination Gateway Genmask Flags Metric Ref Use Iface
default 192.168.101.99 0.0.0.0 UG 1024 0 0 enp3s0
10.10.0.0 10.10.0.5 255.255.255.0 UG 0 0 0 tun0
10.10.0.5 0.0.0.0 255.255.255.255 UH 0 0 0 tun0
192.168.100.0 10.10.0.5 255.255.255.0 UG 0 0 0 tun0
192.168.101.0 0.0.0.0 255.255.255.0 U 0 0 0 enp3s0
******************************************************************
Iptables
-A FORWARD -s 10.10.0.0/24 -d 192.168.101.0/24 -i tun0 -o enp3s0 -m conntrack --ctstate NEW -j ACCEPT
-A FORWARD -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
-A POSTROUTING -s 10.10.0.0/24 -o enp3s0 -j MASQUERADE
******************************************************************
IP FORWARD
net.ipv4.ip_forward = 1