Re: [Soekris] Linux networking with five interfaces

2011-05-28 Thread Michael Stone
On Fri, May 27, 2011 at 03:57:52PM +0100, Nix wrote: Oh. Yeah. You're probably right. /proc/sys/net is still not deprecated though, as far as I know, and can't be deprecated without breaking the world. All the sysctl(8) command does is write values to /proc. It's just a more standardized way to

Re: [Soekris] Linux networking with five interfaces

2011-05-27 Thread Lars Noodén
On 5/26/11 9:32 PM, Matt Ryanczak wrote: You probably want something like this in /etc/network/interfaces: iface br0 inet static bridge_ports eth1 eth2 eth3 eth4 address 192.168.1.1 netmask 255.255.255.0 see:

Re: [Soekris] Linux networking with five interfaces

2011-05-27 Thread Nix
On 27 May 2011, Michael Stone verbalised: On Fri, May 27, 2011 at 02:32:42PM +0100, Nix wrote: I think you got that backwards. The sysctl() syscall is very, very deprecated, so deprecated that huge chunks of it are rotten and nonfunctional at any given time, so deprecated that most of it has

Re: [Soekris] Linux networking with five interfaces

2011-05-26 Thread Lars Noodén
On 5/24/11 3:06 PM, Matt Ryanczak wrote: On 05/24/2011 05:15 AM, Lars Noodén wrote: On 5/24/11 11:29 AM, Luc Michel wrote: If you only want the internal interfaces acting like a switch, you can bridge them together: $ brctl addbr br0 $ brctl addif br0 eth0 $ brctl addif br0 eth1 ... Then

Re: [Soekris] Linux networking with five interfaces

2011-05-26 Thread Lars Noodén
On 5/24/11 3:06 PM, Matt Ryanczak wrote: brctl addbr br0 brctl addif br0 eth1 ... ifconfig br0 192.168.1.1 netmask 255.255.255.0 ifconfig br0 up I can ping 192.168.1.1 from on the router itself, but not from devices plugged into eth0 - eth3 and dnsmasq is running but cannot serve DHCP to

Re: [Soekris] Linux networking with five interfaces

2011-05-26 Thread Lars Noodén
On 5/24/11 3:06 PM, Matt Ryanczak wrote: Assuming you have eth0,1,2,3,4,5 and eth0 is the external interface you would something like this: brctl addbr br0 brctl addif br0 eth1 brctl addif br0 eth2 brctl addif br0 eth3 [snip] ifconfig br0 192.168.1.1 netmask 255.255.255.0 ifconfig br0

Re: [Soekris] Linux networking with five interfaces

2011-05-26 Thread Lars Noodén
On 5/24/11 3:06 PM, Matt Ryanczak wrote: brctl addbr br0 brctl addif br0 eth1 brctl addif br0 eth2 brctl addif br0 eth3 brctl addif br0 eth4 ifconfig br0 192.168.1.1 netmask 255.255.255.0 ifconfig br0 up How should I go about making those settings permanent? Is that something that should

Re: [Soekris] Linux networking with five interfaces

2011-05-26 Thread Oziko Fusion
It depends on your linux distro, but I think for debian that's the file! http://www.debian-administration.org/articles/254 2011/5/26 Lars Noodén lars.noo...@gmail.com: On 5/24/11 3:06 PM, Matt Ryanczak wrote: brctl addbr br0 brctl addif br0 eth1 brctl addif br0 eth2 brctl addif br0 eth3

Re: [Soekris] Linux networking with five interfaces

2011-05-26 Thread Matt Ryanczak
On 05/26/2011 01:50 PM, Lars Noodén wrote: On 5/24/11 3:06 PM, Matt Ryanczak wrote: brctl addbr br0 brctl addif br0 eth1 brctl addif br0 eth2 brctl addif br0 eth3 brctl addif br0 eth4 ifconfig br0 192.168.1.1 netmask 255.255.255.0 ifconfig br0 up How should I go about making those

Re: [Soekris] Linux networking with five interfaces

2011-05-25 Thread David Burgess
On Wed, May 25, 2011 at 3:28 AM, Lars Noodén lars.noo...@gmail.com wrote: What would the masquerading rule look like, assuming eth4 is the external interface and 0-3 are the internal network? The very simple answer is this: iptables -t nat -A POSTROUTING -o eth4 -j MASQUERADE but your really

[Soekris] Linux networking with five interfaces

2011-05-24 Thread Lars Noodén
All of the documentation I've found so far for setting Linux (debian) up as a router involves only two network interfaces. I'm using a net5501 which has four ethernet and one ADSL. Can anyone point me in the direction of how to set up a linux router with five interfaces, one external and four

Re: [Soekris] Linux networking with five interfaces

2011-05-24 Thread Pete
Just assign IP address to all interfaces and set /proc/sys/net/ipv4/ip_forward to 1 . If you wan't firewall functions also just set iptables ad apropriate. ~pete On Tue, May 24, 2011 at 11:00 AM, Lars Noodén lars.noo...@gmail.com wrote: All of the documentation I've found so far for setting

Re: [Soekris] Linux networking with five interfaces

2011-05-24 Thread Raphaël Jacquot
On Tue, 2011-05-24 at 11:32 +0300, Pete wrote: Just assign IP address to all interfaces and set /proc/sys/net/ipv4/ip_forward to 1 . If you wan't firewall functions also just set iptables ad apropriate. in fact, /proc/sys/net ... is deprecated you should use sysctl instead also, you should

Re: [Soekris] Linux networking with five interfaces

2011-05-24 Thread Lars Noodén
On 5/24/11 11:29 AM, Luc Michel wrote: If you only want the internal interfaces acting like a switch, you can bridge them together: $ brctl addbr br0 $ brctl addif br0 eth0 $ brctl addif br0 eth1 ... Then use the br0 interface instead of the ethx ones, put an IP address on it and modify

Re: [Soekris] Linux networking with five interfaces

2011-05-24 Thread Matt Ryanczak
Hi Lars, On 05/24/2011 04:00 AM, Lars Noodén wrote: Can anyone point me in the direction of how to set up a linux router with five interfaces, one external and four internal? I do not know of a guide for this but if you explain what you are trying to do I might be able to help you. Do you

Re: [Soekris] Linux networking with five interfaces

2011-05-24 Thread Matt Ryanczak
On 05/24/2011 05:15 AM, Lars Noodén wrote: On 5/24/11 11:29 AM, Luc Michel wrote: If you only want the internal interfaces acting like a switch, you can bridge them together: $ brctl addbr br0 $ brctl addif br0 eth0 $ brctl addif br0 eth1 ... Then use the br0 interface instead of the ethx

Re: [Soekris] Linux networking with five interfaces

2011-05-24 Thread Lars Noodén
On 5/24/11 3:00 PM, Matt Ryanczak wrote: Do you desire the four internal interfaces to be individually routed network segments or are you trying to have all of them be on the same network like a switch (or a bridge)? Thanks, Matt. It would be ideal to have them all on the same network.

Re: [Soekris] Linux networking with five interfaces

2011-05-24 Thread David Burgess
On Tue, May 24, 2011 at 8:15 AM, Lars Noodén lars.noo...@gmail.com wrote: Thanks, Matt.  It would be ideal to have them all on the same network. Just follow Matt's instructions then and remember to add an iptables rule to do masquerading (NAT). Note also that the combined inter-NIC speed of