Hi my openvpn working like charm but without internet here is my conf
port 1430
proto udp
dev tun
local 192.168.55.100
tun-mtu 1500
tun-mtu-extra 32
mssfix 1450
reneg-sec 0
ca /etc/openvpn/keys/ca.crt
cert /etc/openvpn/keys/server.crt
key /etc/openvpn/keys/server.key
dh /etc/openvpn/keys/dh1024.pem
plugin /usr/share/openvpn/plugin/lib/openvpn-auth-pam.so /etc/pam.d/login
client-cert-not-required
username-as-common-name
server 10.8.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"
keepalive 5 30
comp-lzo
persist-key
persist-tun
status 1194.log
verb 3
I can't ping 10.8.0.1
I can ping 192.168.55.100 from my vpn 10.8.0.6
The ipforwarding is enabled [root@hidro ~]# sysctl -p
net.ipv4.ip_forward = 1
iptables -L -t nat -v
Chain PREROUTING (policy ACCEPT 8 packets, 458 bytes)
pkts bytes target prot opt in out source destination
Chain POSTROUTING (policy ACCEPT 76 packets, 4852 bytes)
pkts bytes target prot opt in out source destination
0 0 SNAT all -- any any 10.8.0.0/24 anywhere to:192.168.55.100
0 0 MASQUERADE all -- any eth0 10.8.0.0/24 anywhere
Chain OUTPUT (policy ACCEPT 76 packets, 4852 bytes)
pkts bytes target prot opt in out source destination
iptables -L -v
Chain INPUT (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
Chain OUTPUT (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
ifconfig
eth0 Link encap:Ethernet HWaddr BC:5F:F4:05:2F:96
inet addr:192.168.55.100 Bcast:192.168.55.255 Mask:255.255.255.0
inet6 addr: fe80::be5f:f4ff:fe05:2f96/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:8871 errors:0 dropped:0 overruns:0 frame:0
TX packets:8010 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:5537351 (5.2 MiB) TX bytes:1451057 (1.3 MiB)
Interrupt:26 Base address:0x6000
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:108 errors:0 dropped:0 overruns:0 frame:0
TX packets:108 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:7980 (7.7 KiB) TX bytes:7980 (7.7 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)