LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 06-20-2010, 09:31 AM   #1
shadyabhi
LQ Newbie
 
Registered: Sep 2008
Posts: 20

Rep: Reputation: 0
Cannot login using ssh (iptables not working as expected)


Please help guyz, I am not able to add iptables rule..

On the computer on which I have to login, Shoreline is installed.I know I can add rule to /etc/shoreline/rules but I decided to manually enter an iptable rule by typing:

Quote:
/sbin/iptables -A local2fw -s 10.100.98.74 -p tcp -m tcp --dport 22 -j ACCEPT
Then why am I not able to login using 10.100.98.74... I get connection refused error...
Tell me what more info do u need. Pls

Last edited by shadyabhi; 06-20-2010 at 02:26 PM. Reason: wrong title
 
Old 06-20-2010, 12:38 PM   #2
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 14,473

Rep: Reputation: 2540Reputation: 2540Reputation: 2540Reputation: 2540Reputation: 2540Reputation: 2540Reputation: 2540Reputation: 2540Reputation: 2540Reputation: 2540Reputation: 2540
Quote:
Originally Posted by shadyabhi View Post
Please help guyz, I am not able to add iptables rule..

On the computer on which I have to login, Shoreline is installed.I know I can add rule to /etc/shoreline/rules but I decided to manually enter an iptable rule by typing:

FULL iptables-save output is here(before command) http://dl.dropbox.com/u/7728421/save.txt
After I executed the command . http://dl.dropbox.com/u/7728421/save_after.txt

Then why am I not able to login using 10.100.98.74... I get connection refused error...Tell me what more info do u need. Pls
Spell your words out.

Is SSH running on port 22, or somewhere else? And did you try to check the Shoreline documentation???
http://www.shorewall.net/FAQ.htm#faq1h

If you're using Shoreline, you need to allow connections through it, as well as IPtables. Otherwise, it'll be blocked.
 
Old 06-20-2010, 01:00 PM   #3
shadyabhi
LQ Newbie
 
Registered: Sep 2008
Posts: 20

Original Poster
Rep: Reputation: 0
Quote:
If you're using Shoreline, you need to allow connections through it, as well as IPtables. Otherwise, it'll be blocked.
Is it? Because I think, if iptables-save is showing that it can accept connections from that ip, then shoreline configuration should not matter
 
Old 06-20-2010, 06:44 PM   #4
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 14,473

Rep: Reputation: 2540Reputation: 2540Reputation: 2540Reputation: 2540Reputation: 2540Reputation: 2540Reputation: 2540Reputation: 2540Reputation: 2540Reputation: 2540Reputation: 2540
Quote:
Originally Posted by shadyabhi View Post
Is it? Because I think, if iptables-save is showing that it can accept connections from that ip, then shoreline configuration should not matter
Shoreline is a firewall, just like iptables can be. Opening one doesn't open another, anymore than opening the front door of your house, will unlock the back door.
 
  


Reply

Tags
iptables, ssh


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] SSH login problem for additional users after password-less login setup uncle-c Linux - Newbie 3 02-10-2010 12:51 PM
SSH login banner/No root login jmoschetti45 Linux - Security 3 01-17-2010 04:51 PM
login in ssh ramesh14 Linux - Software 8 01-06-2010 11:59 PM
SSH Problem - Can't login using Hostname, can login using ip address jqweezy Linux - Networking 7 01-26-2009 02:21 PM
ftp login -- ssh no login waffe Linux - General 4 12-27-2003 12:42 AM


All times are GMT -5. The time now is 05:47 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration