1820057 Members
3072 Online
109608 Solutions
New Discussion юеВ

Disable linux firewall

 
SOLVED
Go to solution
peterchu
Super Advisor

Disable linux firewall

I have install the linux firewall when installing the RH 9 linux , now other server telnet to it , could suggest how can I disable it ? thx in advance.

ps. I didn't have linuxconf , how to config it by command line ? thx.
4 REPLIES 4
xyko_1
Esteemed Contributor
Solution

Re: Disable linux firewall

Hi peterchu,

as root try :

1 - run /etc/init.d/iptables stop
to flush all iptables rules right now;

2 - delete /etc/sysconfig/iptables
to do not start new rules on next boot

regards,
xyko
peterchu
Super Advisor

Re: Disable linux firewall

I have another problem in my newly installed RH linux , when I ftp , telnet to other hosts, it will loop back to the localhost ,

eg . my ip is 192.168.0.1 , when I ftp 192.168.0.2 , then it will ftp to the localhost, the telnet has the same problem , could suggest what is wrong ? thx.
xyko_1
Esteemed Contributor

Re: Disable linux firewall

Hi peterchu,

please send the output of

ifconfig -a
route -n
cat /etc/resolv.conf
cat /etc/hosts

regards,
Xyko

Ps.: if the answers solves or help to solve your questions, please don't forget to assing some points. That's the way we play that game. Let's have some fun while we are working.
Thank's
Steven E. Protter
Exalted Contributor

Re: Disable linux firewall

It might not be the firewall.

service iptables stop

Then check the telnet configuration in /etc/xinetd.d

Change the disable=yes to disable=no

service xinetd restart

telnet will work.

May i suggest however you use ssh instead. Secure authentication is among its many advantages.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com