i have a working ovpn-tcp config:
Server:
Code: Select all
mode server
tls-server
ifconfig 10.0.9.1 255.255.255.0
ifconfig-pool 10.0.9.30 10.0.9.50 255.255.255.0
ifconfig-pool-persist (...)
topology subnet
proto tcp-server
dev tun1
port 55554
push "topology subnet"
push "dhcp-option DNS 192.168.3.102"
push "route 192.168.3.0 255.255.255.0 10.0.9.1"
push "route-gateway 10.0.9.1"
push "redirect-gateway def1 bypass-dhcp"
push "ping 10"
push "ping-restart 60"
push "ping-timer-rem"
client-config-dir (...)
client-to-client
...
status (...)
Code: Select all
]tls-client
remote something.dyndns.org
proto tcp-client
dev tun0
port 55554
remote-cert-tls server
pull
...
script-security 2
up /etc/openvpn/update-resolv-conf
down /etc/openvpn/update-resolv-conf
Stunnel-Server:
Code: Select all
[openvpn]
accept = 0.0.0.0:55552
connect = 127.0.0.1:55554
....
verifyPeer = yes
Code: Select all
[openvpn]
accept = 127.0.0.1:55554
connect = something.dyndns.org:443
...
verifyChain = yes
Code: Select all
tls-client
remote 127.0.0.1
proto tcp-client
dev tun0
port 55554
remote-cert-tls server
pull
...
script-security 2
up /etc/openvpn/update-resolv-conf
down /etc/openvpn/update-resolv-conf
Server-LAN-IP: 192.168.3.101
Router-LAN-IP: 192.168.3.1
OVPN-Server-IP: 10.0.9.1
Public-IP: something.dyndns.org
The OVPN-Client can connect successfully through the stunnel-tunnel to the Server.
But there is a problem with the routings.
The Client cannot reach neither one of the Server-IPs nor a public ip.
Can anyone help me?
Where is the mistake?
I read something that I have to add an additional route-entry, but I dont know which one.
Thanks.