LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 06-08-2008, 10:10 AM   #1
xeross
Member
 
Registered: Apr 2008
Posts: 48

Rep: Reputation: 15
Port Forwarding Slackware 12y


Hey, I want to port forward a port from my linux server to another box in my local network, i tried some iptables command but it didn't work.
How should i forward this.
 
Old 06-09-2008, 02:52 AM   #2
Zangai
LQ Newbie
 
Registered: Dec 2007
Posts: 15

Rep: Reputation: 0
I am a friend of Xeross, and we are working together on this problem.

Let me explain it a bit better:

We currently have this network layout:
http://images.tzxtech.net/network.png

I know it isn't very wise to connect servers with WiFi, but this was the only way.

We have forwarded every port in the LinkSys router to the TZXS01 server. This is the server we want to configure.

We have port 7711 listening on TZXS02, so we want to direct incoming trafic on port 7711 to 192.168.1.201:7711.

Problem is, we only got one network interface: wlan0.

We have tried to do this with iptables, but it didn't work out.

here is current iptables config:

Code:
root@TZXS01:~# iptables -L ; iptables -t nat -L
Chain INPUT (policy ACCEPT)
target     prot opt source               destination

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination
Chain PREROUTING (policy ACCEPT)
target     prot opt source               destination
DNAT       tcp  --  anywhere             535697DF.cable.casema.nl tcp dpt:7711 to:192.168.1.201:7711

Chain POSTROUTING (policy ACCEPT)
target     prot opt source               destination
SNAT       tcp  --  192.168.1.201        anywhere            tcp spt:7711 to:83.86.151.223:7711

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination
 
Old 06-12-2008, 07:45 PM   #3
Zangai
LQ Newbie
 
Registered: Dec 2007
Posts: 15

Rep: Reputation: 0
Bump... Me needs answer
 
  


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
Unable to allocate port with port forwarding software djeepp Linux - Networking 3 01-29-2008 07:28 AM
port forwarding on Belkin 4-port Cable/DSL Gateway Router sycamorex Linux - Networking 5 03-05-2007 03:27 PM
IPCHAINS port forwarding and IPTABLES port forwarding ediestajr Linux - Networking 26 01-14-2007 07:35 PM
Simple Port Forwarding Firewall - not forwarding MadTurki Linux - Security 14 04-09-2006 12:08 PM
Slackware 9.0 port forwarding UT2004 server lord_emperor Linux - Networking 6 07-05-2004 02:22 PM

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

All times are GMT -5. The time now is 09:00 AM.

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