On Wed, 27 Jul 2005 08:31:54 +0200, "Thomas Olschewski" <(E-Mail Removed)> wrote:
>
> I had setup a iptables based linux firewall. It was connected with eth0 to
> the internal network and with eth1 to a dsl modem (pppoe) and did also all
> the NAT stuff. A lightning strike blows my modem and the new dsl hardware is
> a router itself, providing NAT, voip etc. Nevertheless I would like to use
> my iptables firewall between this router and my internal network.
>
> Internal network is 192.168.5.x
>
> Questions
> Is it a good idea to set the unsecure nic eth1 of the firewall and the dsl
> router to another net, for instance 192.168.6.x?
Necessary. Bridging is a pain and probably not required.
> How are the machines of the internal network routed? Is the gateway ip the
> ip of the firewall's secure nic eth0? I suppose it is, but how is the
> firewall networking setup? Does it need also a gateway ip, the ip of the dsl
> router? Can this be the default route or do I have to setup different routes
> for eth0 and eth1?
You're confused... you have a 1:1 link from PC NIC to DSL, the
other NIC to localnet. In your prior setup with PPPoE the public
interface was ppp0, now it is ethX (X = whatever). The modem does
the connection to ISP and it knows default route to world + DNS.
So treat modem now as 'first hop'. Default route for localnet is
firewall, firewall forwards to modem, okay? Now, I've either confused
you or me more, or less? I dunno

)
You could put the modem into bridge mode and do it all in
firewall again, no?
Grant.