Ubuntu Pastebin

Paste from test at Fri, 15 Jan 2016 02:48:57 +0000

Download as text
1
2
3
4
iptables -P OUTPUT DROP
iptables -t filter -A OUTPUT -o lo -j ACCEPT
iptables -t filter -A OUTPUT -o tun0 -j ACCEPT
for i in `ip link show | awk '/^[0-9]+:/{DEV=$2} /link\/ether/{if(match(DEV,"(en|wl|eth|wlan)")>0){gsub(":","",DEV);print DEV}}'` ; do iptables -t filter -A OUTPUT -o $i -p $VPN_PROTOCOL --dport $VPN_PORT -j ACCEPT ; done
Download as text