Skip to content

Instantly share code, notes, and snippets.

View noshimorimoshi's full-sized avatar
🖖
hello world !

noshimorimoshi

🖖
hello world !
View GitHub Profile
@noshimorimoshi
noshimorimoshi / 052-openvpn.sh
Created December 2, 2017 08:38 — forked from top4ek/052-openvpn.sh
My Zyxel Keenetic scripts
#!/bin/sh
[ "$table" != "filter" ] && exit 0
/opt/sbin/iptables -A FORWARD -i tun0 -s 10.8.0.0/24 -j ACCEPT
/opt/sbin/iptables -A FORWARD -m state --state ESTABLISHED,RELATED -j ACCEPT
/opt/sbin/iptables -t nat -I POSTROUTING -o ppp0 -s 10.8.0.0/24 -j MASQUERADE
echo "test successful"