Hey guys,
i stucked on creating an solution with openvpn like this:
I want to connect my clients to the vpn-server (which works great) but the problem is:
that i can't access any vserver in the 192.168.1.1 subnet.
The config should contain a rule that any computer in the 192.168.1.1 subnet is reachable to the client.
My current openvpn config (server):
port 1194
proto udp
dev tun
ifconfig-pool-persist ipp.txt
keepalive 10 120
comp-lzo
user nobody
group users
persist-key
persist-tun
status openvpn-status.log
verb 3
client-to-client
server 172.16.0.0 255.255.255.0
push "redirect-gateway def1"
push "dhcp-option DNS 8.8.8.8"
push "dhcp-option DNS 8.8.4.4"
cipher AES-256-CBC
ca /ca.crt
cert vpnserver.crt
key vpnserver.key
additional the iptable rule for accessing the internet via vpn:
iptables -t nat -A POSTROUTING -o eth0 -s 172.16.0.0/24 -j SNAT --to 144.76.x.x
Does anyone have a solution for this?
Thanks a lot