Skip to content

Instantly share code, notes, and snippets.

@mondalaci
mondalaci / openvpn-on-openwrt.sh
Created April 4, 2013 00:54
OpenVPN configuration on OpenWrt
cat >> /etc/firewall << END
iptables -t filter -A input_wan -p udp --dport 1194 -j ACCEPT
iptables -I INPUT 1 -i tun+ -j ACCEPT
iptables -I FORWARD 1 -i tun+ -j ACCEPT
iptables -I OUTPUT 1 -o tun+ -j ACCEPT
iptables -I FORWARD 1 -o tun+ -j ACCEPT
END
/etc/init.d/firewall restart