[OpenVPN home] [Date Prev] [Date Index] [Date Next]
[OpenVPN mailing lists] [Thread Prev] [Thread Index] [Thread Next]
Google
 
Web openvpn.net

Re: [Openvpn-users] Redirect-gateway on dialup


  • Subject: Re: [Openvpn-users] Redirect-gateway on dialup
  • From: greek ordono <grexk@xxxxxxxxx>
  • Date: Mon, 24 Sep 2007 02:11:37 -0700 (PDT)

Hi,

Here is my current setup:
#
# SERVER
#
# OpenVPN 2.0.9 i486-pc-linux-gnu
# Debian 4.0
#
local 192.168.2.1
port 443
proto tcp
dev tun
server 192.168.233.0 255.255.255.0
push "dhcp-option DNS 208.67.222.222"
push "dhcp-option DOMAIN domain.com"
push "redirect-gateway"
#push "redirect-gateway def1"
client-to-client
ifconfig-pool-persist ipp.txt 10
keepalive 10 120client-config-dir /etc/openvpn/ccd
ccd-exclusive
dh /etc/openvpn/keys/dh1024.pem
ca /etc/openvpn/keys/ca.crt
cert /etc/openvpn/keys/server.crt
key /etc/openvpn/keys/server.key
user nobody
group nogroup
comp-lzo
persist-tun
persist-key
verb 3

#
# CLIENT
#
# OpenVPN 2.0.9 i486-pc-linux-gnu
# Ubuntu7.10
#
client
proto tcp
dev tun
remote xxx.xxx.xxx.xxx
nobind
comp-lzo
persist-tun
persist-key
keepalive 10 120
ca /etc/openvpn/keys/ca.crt
cert /etc/openvpn/keys/client1.crt
key /etc/openvpn/keys/client1.key
ns-cert-type server
verb 3

#
# Route on client when connected to openvpn
#
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
10.64.64.64     0.0.0.0         255.255.255.255 UH    0      0        0 ppp0
192.168.233.5   0.0.0.0         255.255.255.255 UH    0      0        0 tun0
192.200.232.0   0.0.0.0         255.255.255.0   U     0      0        0 eth0
192.168.69.0    0.0.0.0         255.255.255.0   U     0      0        0 vmnet1
172.16.4.0      0.0.0.0         255.255.255.0   U     0      0        0 vmnet8
192.168.233.0   192.168.233.5   255.255.255.0   UG    0      0        0 tun0
169.254.0.0     0.0.0.0         255.255.0.0     U     1000   0        0 eth0
0.0.0.0         0.0.0.0         0.0.0.0         U     0      0        0 ppp0

#
# Log file
#
Sep 24 08:45:55 desktop ovpn-client.tun[6606]: ifconfig tun0 192.168.233.6 pointopoint 192.168.233.5 mtu 1500
Sep 24 08:45:55 desktop ovpn-client.tun[6606]: NOTE: unable to redirect default gateway -- Cannot read current default gateway from system
Sep 24 08:45:55 desktop ovpn-client.tun[6606]: route add -net 192.168.233.0 netmask 255.255.255.0 gw 192.168.233.5
Sep 24 08:45:55 desktop kernel: [ 2893.802764] tun0: Disabled Privacy Extensions
Sep 24 08:45:55 desktop ovpn-client.tun[6606]: Initialization Sequence Completed

TIA,
grexk


Pinpoint customers who are looking for what you sell.