Allow ssh access from port 12345:
shell>/usr/sbin/iptables -I INPUT 1 -p tcp --dport 12345 -j LOG shell>/usr/sbin/iptables -I INPUT 1 -p tcp --dport 12345 -j ACCEPTTo check if it loads properly -
shell>/usr/sbin/iptables -L | grep 12345 LOG tcp -- anywhere anywhere tcp dpt:12345 LOG level warning ACCEPT tcp -- anywhere anywhere tcp dpt:12345I you want to mantain changes Persistently:
shell>nvram set rc_firewall="/usr/sbin/iptables -I INPUT 1 -p tcp --dport 12345 -j LOG" shell>nvram set rc_firewall="/usr/sbin/iptables -I INPUT 1 -p tcp --dport 12345 -j ACCEPT"
0 comentarios:
Publicar un comentario en la entrada