Things I Needed to Know
2010-Jan-05, Tuesday 04:39 pmOn RHEL Server 5.3, if you wish to permit access from other machines on your network through a new port (one not commonly used) you add it as usual through iptables:
To save the new rule to keep it past reset:
/sbin/iptables save
But, the new port will not take effect unless it is also added through the GUI. From the Desktop menu go to:
System > Administration > Security Level and Firewall
On the Firewall Options tab, expand Other ports, and Add your port and protocol. Apply, and OK out. Now the port should be opened immediately.
On SLES 10.0, SP1, there is no iptables. Instead there is SuSEfirewall2. To open a port open the config file:
/sbin/iptables -A INPUT -s 192.168.0.9 -d 192.168.0.8 -p tcp --dport 66666 -j ACCEPT
To save the new rule to keep it past reset:
/etc/init.d/iptables save
But, the new port will not take effect unless it is also added through the GUI. From the Desktop menu go to:
System > Administration > Security Level and Firewall
On the Firewall Options tab, expand Other ports, and Add your port and protocol. Apply, and OK out. Now the port should be opened immediately.
On SLES 10.0, SP1, there is no iptables. Instead there is SuSEfirewall2. To open a port open the config file:
/etc/sysconfig/SuSEfirewall2
, find the line with FW_SERVICES_EXT_TCP=""
(in vim normal mode type /what you're looking for
, n
to move through the list, N
to go backwards) and add your port number to the space separated list. Exit and save. Reload rules with command: SuSEfirewall2