Thanks,
there:
Server conf:
port 1194
proto udp
dev tun
ca keys/ca.crt
cert keys/AU.crt
key keys/AU.key # This file should be kept secret
dh keys/dh1024.pem
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
push "redirect-gateway def1"
push "dhcp-option DNS 8.8.8.8"
push "dhcp-option DNS 8.8.4.4"
keepalive 10 120
comp-lzo
persist-key
persist-tun
status openvpn-status.log
log openvpn.log
verb 9
# iptables -v -L -t nat
Chain PREROUTING (policy ACCEPT 97981 packets, 9497K bytes)
pkts bytes target prot opt in out source destination
Chain POSTROUTING (policy ACCEPT 3662 packets, 282K bytes)
pkts bytes target prot opt in out source destination
2 131 MASQUERADE all -- any eth0 10.8.0.0/24 anywhere
Chain OUTPUT (policy ACCEPT 3662 packets, 282K bytes)
pkts bytes target prot opt in out source destination
# cat /proc/sys/net/ipv4/ip_forward
1
# ifconfig
eth0 Link encap:Ethernet HWaddr 00:16:3e:1a:8e:58
inet addr:27.55.83.241 Bcast:27.55.83.255 Mask:255.255.255.0
inet6 addr: fe80::216:3eff:fe1a:8e58/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1835432 errors:0 dropped:0 overruns:0 frame:0
TX packets:75600 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:173718528 (165.6 MiB) TX bytes:10115281 (9.6 MiB)
Interrupt:24
eth0:0 Link encap:Ethernet HWaddr 00:16:3e:1a:8e:58
inet addr:27.55.83.70 Bcast:27.55.83.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:24
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:193 errors:0 dropped:0 overruns:0 frame:0
TX packets:193 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:15651 (15.2 KiB) TX bytes:15651 (15.2 KiB)
tun0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:10.8.0.1 P-t-P:10.8.0.2 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.8.0.2 * 255.255.255.255 UH 0 0 0 tun0
10.8.0.0 10.8.0.2 255.255.255.0 UG 0 0 0 tun0
27.55.83.0 * 255.255.255.0 U 0 0 0 eth0
default 27.55.83.1 0.0.0.0 UG 0 0 0 eth0
default 27.55.83.1 0.0.0.0 UG 0 0 0 eth0
# nmap -p 1194 -sU -P0 27.55.83.241
Starting Nmap 5.21 (
http://nmap.org ) at 2014-06-22 12:14 MDT
Nmap scan report for xor.servercontrol.com.au (27.55.83.241)
Host is up.
PORT STATE SERVICE
1194/udp open|filtered unknown
Nmap done: 1 IP address (1 host up) scanned in 2.66 seconds
client
dev tun
proto udp
remote 27.55.83.241 1194
resolv-retry infinite
nobind
persist-key
persist-tun
register-dns
ca ca.crt
cert cl02.crt
key cl02.key
ns-cert-type server
comp-lzo
verb 6