LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 02-19-2007, 07:57 AM   #1
slack66
Member
 
Registered: Jul 2003
Location: manila
Distribution: slackware 8 to 9
Posts: 199

Rep: Reputation: 30
Port Forwading


hey guys!
i know many of you will tell me that i must first try to read the manual .... but i try
it didnt work

this is the situation:

dsl router(configured port 22 forwarded to 192.168.1.2)
eth0 203.22.33.xx
eth1 192.168.1.1


linuxbox1(gateway --> private network)
eth0 192.168.1.2(connected to dsl router -->192.168.1.1)
eth1 192.168.0.1(connected to linuxbox2 -->192.168.0.6)


linuxbox2(mainserver)
eth0 192.168.0.6


My question? I want to remotely access my mainserver(linuxbox2) thru ssh 203.22.33.xx and directly forward me to my mainserver instead to my linuxbox1(gateway)
 
Old 02-19-2007, 08:01 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,414

Rep: Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967
well firstly, that's a very very bad thing to do... seems like you're trying to deliberately weaken the reasonable security architecture already in place.

but if you must you'd be best to put a route on the adsl router to route 192.168.0.6 via 192.168.1.2 and port forward to the real ip address you want to reach. otherwise, you'll need a second port forwarding (natting) entry in iptables on the linux box, and avoid port 22 as well.
 
  


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
IP Forwading in iptables (different network) janhouse00 Linux - Networking 1 01-01-2006 07:34 AM
iptables: about FORWADING and nat fei Linux - Networking 36 05-22-2005 11:30 PM
postfix outbound forwading? init Linux - Networking 4 08-26-2004 03:57 PM
Ip forwading questiong Radicalm16 Linux - Networking 5 11-25-2003 10:22 PM
Iptables - Port Forwading - Rh 9.0 dude_228 Linux - Networking 7 06-16-2003 04:20 AM


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