Hi,
On 2005-04-18, Coenraad Loubser <(E-Mail Removed)> wrote:
> Hi all
>
> I've got this Planet 3000 something ADSL Router. Now I've got it set up
> to connect to my ISP with a username and password, and doing NAT (it
> does DHCP too by default)
>
> Now this is all fine and dandy. The only thing, though, is that it's
> connected to only one machine - my linux server - to which a whole lan
> is connected.
>
> Now, every time I need to open a port on a client machine I have to log
> into the modem and enable "virtual servers" or port forwarding, save
> settings, reboot modem. Which is, understandably, annoying! Plus theres
> a limit of 20 forwarder ports, and some crash the firmware!
>
A few friends of mine have to put up with this. I fortunately was able to
persuade my ADSL router to do PPP half-bridge/ZIPB/DHCP Spoofing (different
names for the same thing).
> SO i've seen this bridge/half bridge/something mode... where the linux
> server gets to do the PPPoE and gets the WAN IP on a linux interface.
>
> I've tried to set this up, by setting various Bridge and Half Bridge
> settings and protocols on the modem, but nothing that makes the Linux
> box see the modem.
>
> Could anyone familiar with the involved technology briefly give me an
> overview of how it works/is supposed to work?
>
I really am only experienced with PPPoA setups (us Brits have PPPoA delivered
to the doorstep) but the idea is that you configure the router in a bog
standard NAT configuration with all the firewall, port forwarding and other
fancy features explicitly turned off. You flip the 'half bridge' switch on
the router and all your linux box (or any OS for that matter) needs to do is
make a DHCP request to the router and then the Linux box by magic gets the
real IP and sees the Internet effectively directly.
In reality usually the router 'steals' the IP address, one lower or one
higher than yours, and you get the router as your default gateway on a 'fake'
IP address. This has the side effect that you will not be able to speak to
the actual person who 'owns' the IP address, however there is probably a one
in four billion chance you actually would want to
> Does the modem get an IP in a setup like this? Does all the traffic get
> sent to the modem purely based on its MAC address? Does the interface
> the modem is connected on need an IP address?
>
Now you are a PPPoE kinda person. I personally would expect it to behave in
the same manner as PPPoA as the point of half-bridge is that the PPP
encapsulation occurs elsewhere....I could be wrong though.
> What is DMZ? Is it a better option? Will it accomplish the same?
>
Not what you need, unless you fail to get the half bridge working. What you
would do is 'double-NAT'. For example the network segment between the linux
box and the router is 192.168.0.0/24 whilst your home LAN (linux box to LAN)
is 192.168.1.0/24. The router would pass through all traffic to your linux
box. In effect you treat it as if you have said for *all* port numbers port
forward to my Linux box.
Have fun
Alex
> Thanks, Teachers!