1827837 Members
1555 Online
109969 Solutions
New Discussion

disable the firewall

 
SOLVED
Go to solution
peterchu
Super Advisor

disable the firewall

I have newly installed a linux , but can run telnet , as I know , the default setting is enable the firewall , so the serve is denied to be telnet , how to disable the firewall ? thx.
13 REPLIES 13
Mobeen_1
Esteemed Contributor
Solution

Re: disable the firewall

Peter,
I am sorry. Are you trying to ask how to disable telnet from your Linux server? Please clarify

regards
Mobeen
Claudio Cilloni
Honored Contributor

Re: disable the firewall

try running this:

# service iptables stop

this will disable the firewall. remeber that the telnet service could be disabled. verify with this command:

# chkconfig --list


hth,
Claudio
Rgomes
Valued Contributor

Re: disable the firewall

Hi,

It should be:

iptables -F
service iptables stop <----stop f/w

if you want to start it again, then
service iptables start

regards
Richard
peterchu
Super Advisor

Re: disable the firewall

I stopped the iptables , but still can't , do I need to stop anything ( like any daemon ) after stop the system services ( like iptables ) ? thx.
peterchu
Super Advisor

Re: disable the firewall

I even move the iptables to other name and then reboot, i use chkconfig --list , it is not in the list , now this server can ping to outside but can't run telnet , what is wrong ? thx.
Rgomes
Valued Contributor

Re: disable the firewall

Hi,

Can you ssh this linux box? You can use any ssh client like putty. (It's free, search google).

regards,
Richard
Claudio Cilloni
Honored Contributor

Re: disable the firewall

the command chkconfig --list should list the telnet service in the 'xinetd based services' (bottom part of its output).
If telnet isn't listed there, then you haven't the telnet-server installed. If it is so, find the telnet-server-xxxx.rpm file and install it.

what linux distribution are you using?

Ciao
Claudio
Juno
Occasional Advisor

Re: disable the firewall

I use RH 9,

The server can telnet to other remote hosts now , but the remote hosts can ping/telnet to this host , I have move the iptables and then reboot and checked that no iptables services is running , could suggest what is wrong ? thx.
Juno
Rgomes
Valued Contributor

Re: disable the firewall

Hi,

I guess, for ping you have to have entry in /etc/hosts file:

host_name

and for telnet, pls check:
xinetd instead of inetd. xinetd does not use /etc/inetd.conf, but rather a directory called /etc/xinetd.d with individual files in there for each service.

These are text files and can be edited with VI or any other editor. If you make a change to a file or add a new file, don't forget to restart xinetd with /etc/rc.d/init.d/xinetd restart.

Regards,
Richard
Vernon Brown_4
Trusted Contributor

Re: disable the firewall

If you have telnet installed you may need to enable it by going to:

/etc/xinetd.d/

Check if telnet is there; if so edit it and change disable = yes to disable = no

Steven E. Protter
Exalted Contributor

Re: disable the firewall

After you follow Vernon's instructions,

service xinetd restart

Then Vernon's settings will be active.

Please consider assigning points to those who tried to help you.

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
Naveej.K.A
Honored Contributor

Re: disable the firewall

hi,

how about renaming the /etc/securetty to /etc/securetty.old

Reboot the server

I think by default, linux when installed will allow to telnet from the console only

with best wishes
Naveej
practice makes a man perfect!!!
Marco_113
Frequent Advisor

Re: disable the firewall

You can try to see with command:
netstat -an if the telnet daemon is listening on port 23 or not.
If it's not present it's not running!
Marco