"Terence Parker" <(E-Mail Removed)> écrivait
> I'm trying to setup a linux box as a router - not just for simple NAT
> and firewalling,
NAT is "just simple", this is a special function of a router. SO you
already have a router.
>> but so that I can plug it directly into a line from
> an ISP that offers a whole IP block. However, the ISP doesn't loan out
Cool, but what is your physical line type ? An ethernet connexion ? a
lesaed line (G707, ...) ? ... Do you have an ADSL modem ? ...
Depending on this, you should have a card on your computer with the
corresponding physical interface.
Next you ISP should "route" theses IPs to your Linux router, and so you
should have your router ip address, that you will set to your linux box.
Then you can fill your linux routing table with the other ips :
- use the "route add ..." command to add route entries
- set the ip of the "internal" servers with the ips.
If your ISP doesn't set your router as router for the ips block, but
'simply' send the trafic on your 'line', you should use a different
approch :
- use the 'ifconfig' command to add all ips on the router (on the
same interface)
- use the 'iptables' (linux kernel 2.4.x) to transparently forward
the trafic to internal servers
- set the internal server ip with private ips (192.168.x.x or
10.x.x.x)
For full documentation, have a look at The Linux Document Project :
http://tldp.org
Regards