linux: router: -problem



Hi,
I have a few public ip and I want to use linux as a router, on router will be also firewall, trafic shaper.

I have:
$WAN: eth0
$LAN: eth1
Interfaces
# WAN
$IP addr add 192.168.0.70/24 brd 192.168.0.255 dev $WAN scope global label $WAN
# LAN
$IP addr add 192.168.0.70/26 brd 192.168.0.127 dev $LAN scope global label $LAN
$IP link set $WAN up
$IP link set $LAN up
echo 1 > /proc/sys/net/ipv4/conf/all/proxy_arp
echo 1 > /proc/sys/net/ipv4/ip_forward
Routing:
IP route add 0/0 via 192.168.0.254 dev $WAN

Of course all ip are public. On the local interface I did subnetting. The problem is that from clinet for example 192.168.0.72 I can go out but I can't in, He can't connect with the internet.
'ip route' command looks:
192.168.0.254 dev eth0 scope link
192.168.0.64/26 dev eth1 proto kernel scope link src 192.168.0.70
192.168.0.0/24 dev eth0 proto kernel scope link src 192.168.0.70
169.254.0.0/16 dev lo scope link
default via 192.168.0.254 dev eth0

Greetings
.



Relevant Pages

  • setting up router
    ... I want to setup a router on a Fedora Linux machine. ... Subnet Mask 255.255.255.0 ... 181.196.188.0/24 dev eth0 scope link ... 10.10.10.0/24 dev eth1 proto kernel scope link src 10.10.10.254 ...
    (comp.os.linux.networking)
  • subnet to subnet routing question
    ... [root@circle root]$ ip route ... 192.168.0.0/24 dev eth0 proto kernel scope link src 192.168.0.3 ... The only route that I have explicitly added above (ie, ...
    (comp.os.linux.networking)
  • Re: queer dns access problem
    ... 10.212.166.0/24 dev eth0 proto kernel scope link src 10.212.166.26 ...
    (RedHat)
  • Re: queer dns access problem
    ... 10.212.166.0/24 dev eth0 proto kernel scope link src 10.212.166.26 ...
    (RedHat)
  • Re: queer dns access problem
    ... 10.212.166.0/24 dev eth0 proto kernel scope link src 10.212.166.26 ...
    (RedHat)