How to block port 9090 with iptables?


I want to block my local ports 9090 e 9091 in iptables, so I need to do a ssh port forwarding with putty to access admin area, for security matters.

I know how to do the port forward, but I don´t know the right way to fo that with iptables, and I´m afraid to mess something.

Can you help me with the iptables command ?




I had a similar problem regarding IPTables and port forwarding. The best tutorials for me were here:

You will have to do some try and error, but in the end it will work.




but I can´t make this move because I use the plugin ‘User Service’ to update the users password from a intranet site, which makes request trough http requests.

Is there anyway to update a user info, So I can block the web admin interface ?

Thanks g.mozilla:en-US:official&client=firefox-a&safe=on

maybe something like this

iptables -A INPUT -p tcp -i --dport 9090 -j REJECT

does the user plugin work with https and port 9091?

I would look into setting a rule that will disallow access to the admin console except from specific IPs that you wish to allow for management.