LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-20-2012, 02:53 PM   #1
tnili
LQ Newbie
 
Registered: Sep 2012
Posts: 2

Rep: Reputation: Disabled
Disable firewall on CentOS 64-bit LiveCD


Is it possible to disable or reconfigure the firewall on the CentOS Live CD?

Here is the context. I would like to do some testing using the LiveCD. In order to do this, I need to copy files to and from the CentOS host. Now, I am using WinSCP as a client with SFTP as the protocol. This works flawlessly when the CentOS host is installed from the full DVD (version 6.3). However, when using the LiveCD it does not.

The initial problem was that sshd was not running on the LiveCD. This service automatically starts sftp-server when it detects a connection from WinSCP. So, I started sshd on the LiveCD. However, WinSCP was still timing out on the connection. I looked at the Firewall settings on the Full install and noticed that there was a rule to allow sshd. When I tried to create a similar rule on the LiveCD, I got this:

http://i259.photobucket.com/albums/h...psc50c9558.png

When I tried to disable the firewall, I got this:

http://i259.photobucket.com/albums/h...psc50c9558.png
 
Old 09-21-2012, 07:54 AM   #2
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora/Pop!_OS
Posts: 2,983

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
did you apply the change?

you can also pull up the terminal and switch over to root and run

service iptables stop
service ip6tables stop

those 2 commands should disable the firewall, you might also need to add the IP scheme to the /etc/hosts... ex: if your LAN IP scheme = 192.168.1.0/24 then you would add:

192.168.1. mylan

to the /etc/hosts and restart ipfilter

service ipfilter restart

Good luck.
 
1 members found this post helpful.
Old 09-21-2012, 02:30 PM   #3
tnili
LQ Newbie
 
Registered: Sep 2012
Posts: 2

Original Poster
Rep: Reputation: Disabled
Stoppping those services from the command-line did the trick. Thanks for the response.

Here is a summary of what I did to enable WinSCP access in case anyone comes across this thread in the future.

# service iptables stop
# service ip6tables stop
# service sshd start

[Create a new user with a non-blank password.]

WinSCP/SFTP should work now.

The last step was necessary since sshd does not allow blank passwords by default ('PermitEmptyPasswords' in /etc/ssh/sshd_config).
 
1 members found this post helpful.
Old 09-21-2012, 03:45 PM   #4
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora/Pop!_OS
Posts: 2,983

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
glad that helped. if working please mark as solved.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Not able to launch a 32 bit java installer in 64 bit centos 6.2 Seheri Red Hat 6 03-27-2012 06:56 PM
Not able to launch a 32 bit java installer in 64 bit centos 6.2 Seheri Linux - Newbie 9 03-27-2012 06:29 PM
CentOS 64 Bit Itanium - Need to run 32 bit application. HELP Squerl101 Linux - Server 2 11-02-2011 02:30 PM
LXer: Install HVM FreeBSD 7.0 DomU (32-bit) at Xen 3.2.1 CentOS 5.1 Dom0 (64-bit) LXer Syndicated Linux News 0 05-01-2008 08:00 PM
LXer: Install Xen 3.1 Solaris domU (64 bit) under CentOS 5 dom0 (64 bit) LXer Syndicated Linux News 0 09-21-2007 12:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:51 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration