spikehome
Regular Contributor
Hello,
My firewall script is not working any more after upgrading from firmware RT-AC68U_380.58_0.
A while back i had the same problem so i went back to the 380.58_0 firmware but now is this not possible.
I use at my jfss a firewall-start script with the lines:
What is wrong?
My firewall script is not working any more after upgrading from firmware RT-AC68U_380.58_0.
A while back i had the same problem so i went back to the 380.58_0 firmware but now is this not possible.
I use at my jfss a firewall-start script with the lines:
Code:
#!/bin/sh
touch /tmp/@@@services-start
/usr/sbin/iptables -I INPUT -s X.X.X.X -p tcp --destination-port 5445 -j ACCEPT
/usr/sbin/iptables -I INPUT -s X.X.X.X -p tcp --destination-port 22 -j ACCEPT
/usr/sbin/iptables -t nat -I VSERVER -p tcp -m tcp -s X.X.X.X --dport 80 -j DNAT --to 172.16.X.X:80
/usr/sbin/iptables -t nat -I VSERVER -p tcp -m tcp -s X.X.X.X --dport 8080 -j DNAT --to 172.16.X.X:80
/usr/sbin/iptables -t nat -I VSERVER -p tcp -m tcp -s X.X.X.X --dport 8081 -j DNAT --to 172.16.X.X:80
/usr/sbin/iptables -t nat -I VSERVER -p tcp -m tcp -s X.X.X.X --dport 5000 -j DNAT --to 172.16.X.X:5000
/usr/sbin/iptables -t nat -I VSERVER -p tcp -m tcp -s X.X.X.X --dport 5001 -j DNAT --to 172.16.X.X:5001
/usr/sbin/iptables -t nat -I VSERVER -p tcp -m tcp -s X.X.X.X --dport 6789 -j DNAT --to 172.16.X.X:6789
What is wrong?