LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Need help adding telnet to firewall (https://www.linuxquestions.org/questions/linux-software-2/need-help-adding-telnet-to-firewall-561172/)

HyperTrey 06-12-2007 09:16 AM

Need help adding telnet to firewall
 
How do I add telnet (port 23) to permanently be allowed by the firewall without screwing up the firewall itself? (using iptables)

I also did the following:

chkconfig telnet on
/etc/init.d/xinetd restart
and changed the line to read disable = yes in /etc/xinetd.d/telnet

How do I make this permanent so I don't lose it on restart of machine?


This is a test server and we are testing our software with telnet and ssh both.

dive 06-12-2007 10:41 AM

Something like:

iptables -A INPUT -p tcp --destination-port 23 -j ACCEPT

in your firewall script should do it.


All times are GMT -5. The time now is 04:30 PM.