chebe: (Default)
On 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:
/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:
/sbin/iptables save
/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
Page generated 2017-Oct-16, Monday 09:50 pm
Powered by Dreamwidth Studios