vi /tmp/system.cfg -->insert iptables.sys.masq.2.devname=eth0 iptables.sys.masq.2.status=enabled iptables.sys.masq.3.devname=ath0 iptables.sys.masq.3.status=enabled After action-->escape :wq cfgmtd -f /tmp/system.cfg -w reboot ______________________________________________________________________________________________ echo iptables -t nat -A POSTROUTING -s 192.168.1.0/24 -d 192.168.1.4 -j MASQUERADE >> /etc/persistent/rc.poststart cfgmtd -w -p /etc/ ______________________________________________________________________________________________ iptables -t nat -A POSTROUTING -j MASQUERADE iptables -t nat -A PREROUTING -p tcp -i ppp0 --dport 81 -j DNAT --to-destination 192.168.1.2:80 iptables -t nat -A PREROUTING -p tcp -i ath0 --dport 81 -j DNAT --to-destination 192.168.1.2:80 iptables -t nat -A PREROUTING -p tcp -i ppp0 --dport 8000 -j DNAT --to-destination 192.168.1.64:8000 iptables -t nat -A PREROUTING -p tcp -i ath0 --dport 8000 -j DNAT --to-destination 192.168.1.64:8000 iptables -t nat -A PREROUTING -p tcp -i ppp0 --dport 554 -j DNAT --to-destination 192.168.1.64:554 iptables -t nat -A PREROUTING -p tcp -i ath0 --dport 554 -j DNAT --to-destination 192.168.1.64:554 iptables -t nat -A PREROUTING -p tcp -i ppp0 --dport 82 -j DNAT --to-destination 192.168.1.64:80 iptables -t nat -A PREROUTING -p tcp -i ath0 --dport 82 -j DNAT --to-destination 192.168.1.64:80 ______________________________________________________________________________________________ touch /etc/presistant/ ct save reboot ______________________________________________________________________________________________ httpd.status=enabled httpd.https.status=disabled httpd.https.port=443 httpd.port=80 httpd.session.timeout=900 ______________________________________________________________________________________________ cp /usr/etc/system.cfg /tmp/system.cfg save reboot ______________________________________________________________________________________________ iwconfig ath0 ESSID mynewssid cfgmtd -w -p /etc/