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 10-10-2001, 07:11 PM   #1
TimBeR
LQ Newbie
 
Registered: Oct 2001
Distribution: Redhat 7.1
Posts: 11

Rep: Reputation: 0
Unhappy port forwarding


I recently upgraded from redhat 6.2 to 7.1 and after I did this my ipchains are working but my port_forwarding is not this is what I get

ipmasqadm portfw -a -P udp -L external_ip 888 -R 10.0.0.2 888

portfw: setsockopt failed: Invalid argument

any sugestions on what I can do to fix this would be greatly appriciated.
 
Old 10-12-2001, 01:29 PM   #2
warath
Member
 
Registered: Oct 2001
Location: Ontario, Canada
Distribution: Redhat 9
Posts: 43

Rep: Reputation: 15
You have to use iptables, and disable ipchains.

then do this to port forward

/sbin/iptables -t nat -A PREROUTING -p tcp -d $IP --dport 1212 -j DNAT --to $ryan:1212

which is saying
incomming connection to $IP (the internet ip of the router/server) destination port 1212, forward to IP $ryan port 1212

hope that helps
 
  


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 10:16 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