LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Port Forwading (https://www.linuxquestions.org/questions/slackware-14/port-forwading-530378/)

slack66 02-19-2007 06:57 AM

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

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):D

acid_kewpie 02-19-2007 07:01 AM

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.


All times are GMT -5. The time now is 02:57 PM.