Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
06-20-2010, 09:31 AM
|
#1
|
|
LQ Newbie
Registered: Sep 2008
Posts: 20
Rep:
|
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
|
|
|
|
06-20-2010, 12:38 PM
|
#2
|
|
Guru
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 12,003
|
Quote:
Originally Posted by shadyabhi
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.
|
|
|
|
06-20-2010, 01:00 PM
|
#3
|
|
LQ Newbie
Registered: Sep 2008
Posts: 20
Original Poster
Rep:
|
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
|
|
|
|
06-20-2010, 06:44 PM
|
#4
|
|
Guru
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 12,003
|
Quote:
Originally Posted by shadyabhi
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.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 07:35 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|