Monthly Archives: September 2015

setup openvpn server

on server:

root@acer:~# ifconfig tun0
tun0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:192.168.88.1 P-t-P:192.168.88.2 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:707 errors:0 dropped:0 overruns:0 frame:0
TX packets:66 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:56392 (55.0 KiB) TX bytes:20142 (19.6 KiB)

root@acer:~# iptables -t nat -A POSTROUTING -s 192.168.88.1/24 -o eth0 -j MASQUERADE