LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 01-18-2011, 11:54 PM   #1
gardenair
Member
 
Registered: Oct 2004
Location: LH
Posts: 648

Rep: Reputation: 45
Putty not work when Linux IPTABLES is working.


I am using putty in my windows machine to access my Linux server terminal.
Code:
Putty works fine if I disable my Linux IPTABLES.
My Windows machine IP is 192.168.1.249
Linux server IP address is 192.168.1.200

I don't know how to allow it through IPTABLES.The port which putty is using is 22.
Kindly help me.
Thnaks
garden
 
Old 01-19-2011, 12:05 AM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Which distro are you using? Many distros (eg. suse, fedora) have front ends allowing you to open the default ssh port easily. Ubuntu doesn't but you can install a package such as firestarter to provide a front end. The front ends will probably add this line to the firewall startup script:

iptables -A INPUT -i eth0 -p tcp -m tcp --dport 22 -j ACCEPT
 
Old 01-19-2011, 01:18 AM   #3
gardenair
Member
 
Registered: Oct 2004
Location: LH
Posts: 648

Original Poster
Rep: Reputation: 45
Thanks for the guidance. Well I am using Red Hat Linux.I have use the command

Code:
#iptables -F
and start the service and add the IPTABLE rule which you mentioned. again stop and start the service.From windows xp computer I give the IPa ddress of my Linux machine but no success.
When I stop the iptables service putty works fine.
 
Old 01-19-2011, 03:20 PM   #4
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
Port 22 is being blocked by iptables. Try using the built in GUI for configuring your firewall. Also, if you are using wireless, the command that jschiwal gave you will not work, since you will need to change the interface to the one you are using.
 
  


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
Putty not working in office. karthiksharu Linux - Newbie 1 05-22-2009 06:37 AM
iptables doesnt work in my linux kernel rohit83.ken Linux - Newbie 1 04-01-2008 08:28 AM
Newbie dunno how to get puTTY working gaviidae Linux - Software 6 09-24-2004 01:09 AM
block putty.exe(ssh) with iptables jamiguel77 Linux - Networking 13 09-14-2004 10:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:49 PM.

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