Thread: Routing over Aliased IP addresses
hi all,
due people in house (i suspect brother) abusing our internet regularly, slowing down terribly else, want route traffic through ubuntu server can monitor bandwidth usage of on network.
our network setup follows:
on server, network config follows:code:---- switch ------- smart tv, destkop, raspberry pi | internet -------- netgear adsl router/ap ------- laptops | ---- hp proliant microserver
i've got dhcp , dns servers running on server happily. need in order bad boy working set routing, proving more difficult thought be, because iptables doesn't seem idea of working virtual interfaces.code:auto eth0 iface eth0 inet static address 192.168.0.2 gateway 192.168.0.1 netmask 255.255.255.0 network 192.168.0.0 broadcast 192.168.0.255 auto eth0:0 iface eth0:1 inet static address 192.168.1.1 network 192.168.1.0 netmask 255.255.255.0 broadcast 192.168.1.255
i've followed couple of guides on net, , have got absolutely nowhere. syslog shows it's doing something, browser on computers on network time out. logs so:
any idea can do, short of going out , buying second nic? i've got spare one, it's pci, , server needs pcie. , i'm student, i'm trying avoid spending cash unless havecode:apr 20 13:57:09 ****-server kernel: [ 3625.186727] in=eth0 out=eth0 mac=**** src=192.168.1.3 dst=108.160.162.44 len=60 tos=0x00 prec=0x00 ttl=63 id=18723 df proto=tcp spt=59277 dpt=80 window=14600 res=0x00 syn urgp=0
thanks!
i guess netgear router 192.168.0.1.
know can reach network 192.168.1.x via 192.168.0.2? have add static route netgear tell this, or won't forward reply packets you.
alternatively, can configure ip address translation in server traffic network 192.168.1.x appears have come 192.16.8.0.x, there risk of clash here don't recommend it.
if filtering in iptables, have ip address rather interface, since there 1 interface (it has multiple addresses).
it's easiest use tcpdump try see what's going on:
code:sudo tcpdump -n
Forum The Ubuntu Forum Community Ubuntu Official Flavours Support Networking & Wireless Routing over Aliased IP addresses
Ubuntu
Comments
Post a Comment