Friday, February 21, 2014

simple unifi router

here's mine:

stored here for recovery later :)

#!/bin/sh
modprobe iptable_nat
echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE
iptables -A FORWARD -j ACCEPT

Related Posts Plugin for WordPress, Blogger...