LinuxQuestions.org
Review your favorite Linux distribution.
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 04-05-2005, 04:58 AM   #1
b:z
Member
 
Registered: Mar 2005
Posts: 146

Rep: Reputation: 15
SSH - How can i alllow someone SSH to my network from Internet - please help me


This is my network diagram:

<<<Internet>>>----<<<Modem>>----<<eth0+++eth1>----<LAN>.

IP received from ISP: 203.113.2.x (dynamic)
Modem IP: 192.168.11.1
eth0: 192.168.11.2
eth1: 192.168.1.1
LAN: 192.168.1.x

Sometime i work at another place, however i also want to ssh to my Linux gateway from my place.

How can i configure my Linux gateway to allow me SSH to Linux gateway from anywhere? I have to edit my iptables, am i right?
NAT is configured from Internal to External.

Please help me solve the problem. Thank you very much.
 
Old 04-05-2005, 07:08 AM   #2
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
yes u need to configure NAT from external to internal to allow ssh

regards
 
Old 04-05-2005, 07:10 AM   #3
b:z
Member
 
Registered: Mar 2005
Posts: 146

Original Poster
Rep: Reputation: 15
Thanks for your reply.
Can you give me an exable with my cause.

Thanks again.
 
Old 04-05-2005, 07:13 AM   #4
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
hi there

i am not cofortable with writing IPtables scripts
so i prefer shorewall (shorewall.net) to do that for me and it has a pretty easy setup for that

regards
 
Old 04-05-2005, 07:21 AM   #5
pevelius
Member
 
Registered: Mar 2004
Location: Tampere, Finland
Distribution: Debian, Familiar, OS X
Posts: 145

Rep: Reputation: 16
also you may want to get a dns name from www.dyndns.org or some other similar service (they are free) since you have a dynamic address. and configure your system to update your ip to the service.
 
  


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
ssh-agent, ssh-add and ssh-keygen AND CVS raylpc Linux - General 2 11-19-2008 02:50 AM
[SSH] Issue logging in [SSH & Permissions] MD3 Linux - Networking 11 12-10-2006 09:25 AM
Mac OS X ssh client / linux sshd : ssh hangs/disconnects Apollo77 Linux - Networking 1 05-24-2006 11:53 AM
I turned off SSH, but I cant get it back! How do you start SSH on boot? nmoog Slackware 2 02-08-2004 05:18 PM
ssh issue: /usr/bin/ssh -x -oFallBackToRsh no -l WeNdeL Linux - Software 1 03-04-2003 07:17 PM

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

All times are GMT -5. The time now is 03:35 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