Editing iptables via Lish?
How do I edit the iptables on my GNU+Linux install on my Linode via Lish?
4 Replies
What distribution are you using?
Are you using straight iptables, or are you using something like ufw, firestarter, or firewalld to manage the firewall rules?
@Vance:
https://www.linode.com/docs/security/fi … h-iptables">https://www.linode.com/docs/security/firewalls/control-network-traffic-with-iptables What distribution are you using?
Are you using straight iptables, or are you using something like ufw, firestarter, or firewalld to manage the firewall rules?
Ubuntu. I locked myself out by changing the default port for SSH to another port and, thanks to good'ol sleep deprivation, forgot to open the new port.
Been at this for about 3 hours straight now.
Thanks for replying.
iptables -A INPUT -p tcp -m multiport –destination-ports $YOURPORT -j ACCEPT
Replace $YOURPORT with the port.