Re: Help needed on ip forwarding
From: Bernhard Kastner (bkastner_at_aon.at)
Date: 09/29/04
- Next message: TCMA: "Re: minicom: cannot open /dev/usb/tts/0: No such file or directory"
- Previous message: Daniel: "Help needed on ip forwarding"
- In reply to: Daniel: "Help needed on ip forwarding"
- Next in thread: Daniel: "Re: Help needed on ip forwarding"
- Reply: Daniel: "Re: Help needed on ip forwarding"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 29 Sep 2004 16:24:05 +0200
Daniel schrieb:
> Here's my current network.
>
> [ADSL modem] -- [ router ] -- [ private LAN ] -- [ my computer ]
>
> My modem gets an external IP from the ISP.
>
> My computer uses an internal IP (192.168.0.*) assigned by the router.
>
>
> What I'd like is to set up a virtual interface and ip
> forwarding/masquerading to 'trick' my
> computer into thinking that it's using the external IP address instead.
>
> This is because certain peer to peer clients work better if they 'think'
> they have
> an external IP address to give to other client on their networks. My
> computer is set as
> the DMZ on the router, so any inbound connection will pass through to my
> computer.
>
> The issue is now how to trick all the applications into thinking they're
> using the
> external IP address on the virtual interface (I have two physical
> interfaces on my
> computer if it makes a difference).
>
> I managed to set the external IP on the virtual interface, but got stuck
> setting up
> the routing tables.
>
> Any help in getting this setup to work would be greatly appreciated.
>
> Thanks in advance,
> Daniel
what kind of router is your router? is it a little box that gave you
your isp or is it a configurable computer?
there are two possibilities: If it is a computer, just set
/proc/sys/net/ipv4/ip_forward to 1 if you really want everything to be
forwarded, which is not recommended for some security reasons.
The second possibility is, you have a little Router, that is no
"computer" and is configurable. In that case, you just have to forward
PORTS, not IPs. that's a big difference. If you want to run eMule, you
have to forward the specific port (both UDP and TCP) to your computer
and nothing more.
But be careful with forwarding ports: some ports are used by malicious
software that wants to enter your network and if your ISP doesn't allow
a server or even a network to be set up by you, you can be detected by
the ISP, when you're running services on a specific port, that is
forwarded. (So never ever forward Port 80 if you're not allowed to runa
a webserver)
- Next message: TCMA: "Re: minicom: cannot open /dev/usb/tts/0: No such file or directory"
- Previous message: Daniel: "Help needed on ip forwarding"
- In reply to: Daniel: "Help needed on ip forwarding"
- Next in thread: Daniel: "Re: Help needed on ip forwarding"
- Reply: Daniel: "Re: Help needed on ip forwarding"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|