Pozdrav svima,
instalirao sam openvpn na desktopu (server) i laptopu (client), kada sam restartoravo vpn prijavio je da je vpn OK:
root@laptop:/home/tedi# /etc/init.d/openvpn restart
Stopping virtual private network daemon: openvpn.
Starting virtual private network daemon: openvpn(OK).
na samom kraju instalacije OpenVPN-a na serveru izvrsio sam NAT-ovanje
echo 1 > /proc/sys/net/ipv4/ip_forward
sudo iptables -t nat -A POSTROUTING -s 10.8.0.0/24 -o eth0 -j MASQUERADE
sudo iptables -L -t nat
i od tog trenutka kada sam restartovao VPN jedan drugog ne mogu pingovati ni server clienta, a ne moze ni obrnuto:)
na komandu
root@laptop:/home/tedi# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.8.0.5 0.0.0.0 255.255.255.255 UH 0 0 0 tun0
192.168.1.3 192.168.1.1 255.255.255.255 UGH 0 0 0 eth0
10.8.0.0 10.8.0.5 255.255.255.0 UG 0 0 0 tun0
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
0.0.0.0 10.8.0.5 128.0.0.0 UG 0 0 0 tun0
128.0.0.0 10.8.0.5 128.0.0.0 UG 0 0 0 tun0
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 eth0
root@laptop:/home/tedi# ping 10.8.0.1
PING 10.8.0.1 (10.8.0.1) 56(84) bytes of data.
ping: sendmsg: Operation not permitted
ping: sendmsg: Operation not permitted
— 10.8.0.1 ping statistics —
2 packets transmitted, 0 received, 100% packet loss, time 1008ms
root@laptop:/home/tedi# ping 192.168.1.3
PING 192.168.1.3 (192.168.1.3) 56(84) bytes of data.
From 192.168.1.1 icmp_seq=1 Destination Net Unreachable
From 192.168.1.1 icmp_seq=2 Destination Net Unreachable
— 192.168.1.3 ping statistics —
2 packets transmitted, 0 received, +2 errors, 100% packet loss, time 1000ms
na laptopu sam odmah izgubio konekciju sa internetom inace imam adsl, sta treba da uradim da VPN mreza proradi bez problema ???
POZDRAV I HVALA UNAPRED !!!