linux: router: -problem
- From: Adamo <_NO_SPAM_dodi100@xxxxx>
- Date: Mon, 27 Feb 2006 14:58:29 +0100
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
.
- Follow-Ups:
- Re: linux: router: -problem
- From: darjus@xxxxxxxxx
- Re: linux: router: -problem
- Prev by Date: Re: SO_REUSEPORT -- available in linux ?
- Next by Date: Linux Bridge Job - Dallas, Texas
- Previous by thread: SO_REUSEPORT -- available in linux ?
- Next by thread: Re: linux: router: -problem
- Index(es):
Relevant Pages
|