PabloAbonia
Regular Contributor
Need to open ports for HP printer to work with eprint. Ports 5222 and 5223.
The following firewall-start script runs, and the changes are applied but the ports still remain blocked.
Any help would be appreciated.
Thanks,
Pablo
The following firewall-start script runs, and the changes are applied but the ports still remain blocked.
Code:
#!/bin/sh
logger -t $(basename $0) "Firewall-start script started."
iptables -A INPUT -m state --state NEW -m tcp -p tcp --dport 5222 -j ACCEPT
iptables -A INPUT -m state --state NEW -m tcp -p tcp --dport 5223 -j ACCEPT
iptables -A FORWARD -m state --state NEW -m tcp -p tcp --dport 5222 -j ACCEPT
iptables -A FORWARD -m state --state NEW -m tcp -p tcp --dport 5223 -j ACCEPT
logger -t $(basename $0) "Firewall-start script complete."
Any help would be appreciated.
Thanks,
Pablo