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

How To Set Up an OpenVPN Server on Ubuntu 18.04

In docker container:

mkdir -p /dev/net
mknod /dev/net/tun c 10 200

https://stackoverflow.com/questions/38758627/how-can-we-add-capabilities-to-a-running-docker-container