LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 08-25-2001, 01:03 AM   #1
DJFauß
Member
 
Registered: May 2001
Location: Germany
Distribution: SuSE 8.1
Posts: 48

Rep: Reputation: 15
Port forwarding


Hi guys! I'm trying to do this:

iptables -t nat -A PREROUTING -d xx.xx.xx.xx -p tcp --destination-port 2300:2400 -i eth0 -j DNAT --to yy.yy.yy.yy
iptables -t nat -A PREROUTING -d xx.xx.xx.xx -p udp --destination-port 2300:2400 -i eth0 -j DNAT --to yy.yy.yy.yy
iptables -t nat -A PREROUTING -d xx.xx.xx.xx -p tcp --destination-port 47624 -i eth0 -j DNAT --to yy.yy.yy.yy:47624

Where xx.xx.xx.xx. is the public/external IP address of your firewall, and yy.yy.yy.yy is the local/private IP of the
machine running BattleCom. Note: only one machine behind the firewall can run BattleCom.

However it doesn't work.

I'm running a Linux 7.1 with a self-compiled 2.4.4 kernel with IPTABLES & NAT.

Is there a specific option I need to compile? Routing and Masquerading works ...
 
  


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
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
Port 80 forwarding to port 22 with iptables zahoo Linux - Networking 3 02-22-2005 07:22 AM
port forwarding and packet forwarding syrtsardo Linux - Newbie 2 07-03-2003 10:37 AM
How to do ip port forwarding cmardhekar Linux - General 0 08-28-2001 12:49 AM

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

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