LinuxQuestions.org
Register a domain and help support LQ
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 03-23-2006, 11:25 PM   #1
shadowsurfer
Member
 
Registered: Aug 2004
Location: philippines
Posts: 51

Rep: Reputation: 15
IPTABLE configuration


Hi guy,

Can you help me by giving the syntax to allow certain ip to use ssh on my linux box.

thank
 
Old 03-24-2006, 03:31 AM   #2
novice06
Member
 
Registered: Mar 2006
Location: Singapore
Distribution: RHEL, CentOS
Posts: 132

Rep: Reputation: 23
test

hi,

#/sbin/iptables -A INPUT -p tcp -m tcp --dport 22 -j ACCEPT

novice06
 
Old 03-24-2006, 04:36 AM   #3
sohailark
LQ Newbie
 
Registered: Feb 2006
Posts: 10

Rep: Reputation: 0
Dear Friends,
how can i enable ssh service for remote users. becuase when i install my linux machine (Fedora core3). and give him a ip address 192.168.1.1 subnet mask 255.255.255.0 it works properly locally but when i go to the enother pc and want to ssh my linux machine it deny my request how can i allow ssh remotely
 
Old 03-25-2006, 10:25 PM   #4
fotoguy
Senior Member
 
Registered: Mar 2003
Location: Brisbane Queensland Australia
Distribution: KirraMail Live Email Server
Posts: 1,285

Rep: Reputation: 61
Quote:
Originally Posted by sohailark
Dear Friends,
how can i enable ssh service for remote users. becuase when i install my linux machine (Fedora core3). and give him a ip address 192.168.1.1 subnet mask 255.255.255.0 it works properly locally but when i go to the enother pc and want to ssh my linux machine it deny my request how can i allow ssh remotely

If you want to allow remote users to access this machine from outside your network you will need to forward port 22 on your router and direct it to the ipaddress of the machine running the ssh server
 
  


Reply


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
iptable configuration with guarddog permanent regardless wm? jasone Linux - General 2 04-21-2005 06:28 AM
what is an iptable? Baran Linux - Newbie 7 02-07-2005 06:14 PM
iptable cristi1979 Linux - Networking 4 06-29-2003 06:54 PM
Iptable Help cirkut5732 Slackware 4 04-11-2003 12:18 AM
iptable help Syntax Linux - General 1 12-30-2002 12:04 AM


All times are GMT -5. The time now is 04:34 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration