LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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-19-2002, 10:23 AM   #1
gballard
LQ Newbie
 
Registered: Aug 2002
Posts: 6

Rep: Reputation: 0
IP Forwarding


I am currently running a RedHat 7.3 with kernel 2.4.18-3 using Firestarter as my firewall and NAT. I was told that it is possible to get the video and voice chat features of Yahoo Messenger to work properly using portforwarding. He sent me the ports I need to forward to make this work. Problem is...I have no idea how to forward the ports. I see a reference to ipmasqadm but when i do a locate on this on my box...it doesn't seem to be installed. Is there a RPM for it? I didn't see it on my cds and when I went to http://rpmfind.net I didn't find one expressly for redhat 7.3. Here is what he said I needed to put in my rc.local:

ipmasqadm portfw -a -P udp -L 24.x.x.x.x 2090 -R 192.168.0.6 2090

ipmasqadm portfw -a -P udp -L 24.x.x.x.x 2091 -R 192.168.0.6 2091

The 24.x.x.x is apparently his static IP address on his linux box. I don't have a static IP address....I am on dialup and my IP changes everytime...what would I put in for that in my case?

Any information or pointing me to documentation on this would be greatly appreciated.
 
Old 08-19-2002, 11:43 AM   #2
johntmills
LQ Newbie
 
Registered: Feb 2002
Distribution: RedHat 7.2
Posts: 27

Rep: Reputation: 15
You could fix this by adding a little code to your dialer script or just run it
manually after you connect. Here's the script I use for my cable modem
since it changes a couple of times a year:

NIC=`route -n | grep UG | awk {'print $8'}`
IP=`ifconfig $NIC | grep "inet addr" | awk -F: {'print $2'} | awk {'print $1'}`

ipmasqadm portfw -a -P udp -L $IP 2090 -R 192.168.0.6 2090
ipmasqadm portfw -a -P udp -L $IP 2091 -R 192.168.0.6 2091

I haven't worked very much with modems, but I think you should just have
a device called ppp0 or some such. The NIC command will just determine
what your default gateway is on, and then it uses ifconfig to determine the
IP. Another way of doing this is checking your DHCP file because it also
knows your IP.

-John
 
Old 08-19-2002, 12:33 PM   #3
gballard
LQ Newbie
 
Registered: Aug 2002
Posts: 6

Original Poster
Rep: Reputation: 0
I have done some reading and it seems that ipmasqadm is for the 2.2 kernel and I am using the 2.4 kernel....should I be using something else to do the port forwarding for the 2.4 kernel?
 
Old 08-19-2002, 02:37 PM   #4
Sylhouette
Member
 
Registered: Oct 2001
Location: Beverwijk (Holland
Distribution: Red Hat 7.1
Posts: 132

Rep: Reputation: 15
You need iptables with the 2.4 kernel
 
  


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
Mail Forwarding in postfix/maildrop/redhat (like yahoo mail forwarding) topcat Linux - Software 1 08-31-2007 12:10 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
IP Forwarding Dhax Linux - Networking 2 03-20-2004 10:13 AM
port forwarding and packet forwarding syrtsardo Linux - Newbie 2 07-03-2003 10:37 AM

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

All times are GMT -5. The time now is 11:51 PM.

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