IP Masquerade

IP Masquerade

Post by Kelvin Leun » Mon, 11 Nov 2002 17:44:26



Hi,
    I am currently setting up the IP Masquerade function in my linux box. It
is installed with RedHat 8.0 kernel 2.4.18-14 to serve two PCs ( windows
OS ). I have followed the instrcutions in IP Masquerade HOWTO but still not
able to make it function. I had followed the steps of testing in the HOWTO,
successfully ping the external interface of the linux box, but failed to
ping external address. There is no problem in the internet connection, since
I can use it in Windows. Anyone knows the problem??? Also whenever the
windows machine try to ping the server or external addresses, some log-like
text appear on the screen.
IN=eth1 OUT=eth0 SRC=192.168.0.2 ..............
Is Redhat included with ICMP forwarding function???
Thank you
 
 
 

IP Masquerade

Post by Meron Lavi » Tue, 12 Nov 2002 15:42:49


If you send me an email, I'd be glad to send you a copy of my iptables
NATting firewall. Just be sure to remove the "2" from my email address
(anti-spam).

--
Meron Lavie

NOTE: THERE IS NO "2" IN MY REAL EMAIL ADDRESS: ANTI-SPAM!!!


Quote:> Hi,
>     I am currently setting up the IP Masquerade function in my linux box.
It
> is installed with RedHat 8.0 kernel 2.4.18-14 to serve two PCs ( windows
> OS ). I have followed the instrcutions in IP Masquerade HOWTO but still
not
> able to make it function. I had followed the steps of testing in the
HOWTO,
> successfully ping the external interface of the linux box, but failed to
> ping external address. There is no problem in the internet connection,
since
> I can use it in Windows. Anyone knows the problem??? Also whenever the
> windows machine try to ping the server or external addresses, some
log-like
> text appear on the screen.
> IN=eth1 OUT=eth0 SRC=192.168.0.2 ..............
> Is Redhat included with ICMP forwarding function???
> Thank you


 
 
 

1. IP Masquerading works, but does not masquerade from within the local network

I've got a box running Redhat 6.1 working as a gateway for our home network.
It's connected to a cable modem, and we've only got one IP address, so it's
doing IP forwarding and masquerading for us.

Now, consider this situation: I've got a webcam running on one of my windows
boxes, whose IP address is 192.168.0.1 (for instance). The webcam is on port
8888, and I've got the linux box set up to forward this port along from
port, say, 9999, using a line much like

ipmasqadm portfw -a -P tcp -L xxx.xxx.xxx.xxx 9999 -R 192.168.0.1 8888

in my rc.local.

This works very well for people connecting in from outside - they'd use a
URL like:

http://xxx.xxx.xxx.xxx:9999/video/frame

but if I try and use that URL from inside the local network, it doesn't
connect, I'd have to use:

http://192.168.0.1:8888/video/frame

which is rather annoying as it makes it difficult to test things (I have to
VNC out to work and boot up a browser there)

I'm fairly sure the problem isn't with the webcam software - I've had the
same problem when trying to connected to an apache server inside the network
as well.

any ideas?

cheers,

Tim


2. xlink13.tgz missing from SLS test version

3. IP MASQuerading NOT Masquerading?

4. RedHat 4.0 install & DPT SCSI

5. lprng and printing to remote server

6. Backup scripts, IP firewalling and IP masquerading

7. Install Linux on 2nd Drive

8. IP NAT and IP Masquerading

9. IP-Chains vs. IP-Masquerade

10. IP Masquerade , IP Chains

11. proxy route gateway ip masquerading ip chains ?

12. IP masquerading wint RH 5.2 multiple IP