Quote:
Originally Posted by mmhs
hey guys i have a simple question
how can i add a port number as a trust in firewall with command
i test iptables -A INPUT -p tcp --dport portnumber -j ACCEPT
but it cant help me
i want to add port from command same as gui
system ---->administration ---->security level and firewall --->add port
plz help me !!
|
Instead of using -A INPUT
use -I INPUT. THis inserts the rule at the top of the chail. You can also specify a position in the chain.
ie
iptables -I INPUT 3 -p tcp --dport 21 -j ACCEPT
But as to do it via GUI, it might help if you tell us what distribution you are running.