dual nic setting problem

This forum is for admins who are looking to build or expand their OpenVPN setup.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
victor yoon
OpenVpn Newbie
Posts: 1
Joined: Thu May 25, 2017 12:56 pm

dual nic setting problem

Post by victor yoon » Fri May 26, 2017 2:18 am

I had set below server.conf and OPENVPN client connect server success.
OPENVPN client got ip 10.187.34.62.
but I could not connect internet.
Please help

[My network]
{INTERNET} ---- [GW:10.189.0.1] ---- [eth0:10.189.0.35][ OPENVPN SERVER ][eth1:192.168.0.4] ---- [OPENVPN CLIENT]

[server.conf]
port 80
proto tcp
dev tun
topology subnet
ca ca.crt
cert ca.crt
key ca.key # This file should be kept secret
dh sample-keys/dh1024.pem
server 10.187.0.0 255.255.0.0
client-config-dir ccd
push "dhcp-option DNS 8.8.8.8"
push ping 10
ping 10
ping-exit 20
comp-lzo
max-clients 300
persist-key
persist-tun
cipher AES-256-CBC
status full-status.log 10
log full.log
management localhost 7505
verb 9
push "socket-flags TCP_NODELAY"
socket-flags TCP_NODELAY

[OPENVPN SERVER ROUTE]
Destination Gateway Genmask Flags Metric Ref Use Iface
default 10.189.0.1 0.0.0.0 UG 0 0 0 eth0
10.187.0.0 * 255.255.0.0 U 0 0 0 tun0
10.189.0.0 * 255.255.255.0 U 0 0 0 eth0
link-local * 255.255.0.0 U 1007 0 0 eth1
link-local * 255.255.0.0 U 1013 0 0 eth0
192.168.0.0 * 255.255.255.0 U 0 0 0 eth1

Post Reply