Re: a little help on iptables

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Luca

It could be easier to give you a hand if you provides us with the
output of: ifconfig; route -n and iptables -L (and iptables -L -t nat)

you call always try to execute the following:
route add default gateway x.x.x.x netmask y.y.y.y ethX
for the default gateway and:
route add -net z.z.z.z netmask k.k.k.k dev ethY
for the other route

Hope it helps

Andre Serralheiro

On 9/7/06, Luca Ferrari <fluca1978@xxxxxxxxxxx> wrote:
Hi all,
this is the situation: I've got a firewall double-homed, with a NIC assigned
to a public IP and the other to the LAN network. Until now I've used the
external NIC as default gateway, since my router has a public address too.
Now I'd like to use another router on the lan as default, leaving untouched
the external interface (since the firewall must be accessible from the
outside world). So I've changed the default gw to the lan one, and it works,
but I get the external ip unreachable, and I think it's because it does not
know the gateway interface. So, how can I specify for the external interface
the gateway to use? If I try to do it thru the route command it replies sayng
that the network is unreachable. Any help?
Thanks,
Luca
-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Newbie]     [Audio]     [Hams]     [Kernel Newbies]     [Util Linux NG]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Device Drivers]     [Samba]     [Video 4 Linux]     [Git]     [Fedora Users]

  Powered by Linux