FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian User

 
 
LinkBack Thread Tools
 
Old 08-05-2008, 05:26 PM
Shachar Or
 
Default simple router

On Tuesday 05 August 2008 21:59, Alexander wrote:
> I want create my debian home router:
> |"dslmodem" wan ppp0|<-->|eth0<-->(eth1,eth2 - shaping router)|<---|"lan"
> | comp1,comp2|
>
> I've created some configurations:
> ------------------------------------------------------------------------
> 1. /etc/network/interfaces
>
> # This file describes the network interfaces available on your system
> # and how to activate them. For more information, see interfaces(5).
>
> # The loopback network interface
> auto lo
> iface lo inet loopback
>
> # The primary network interface
>
> #allow-hotplug eth0
> auto eth0
> iface eth0 inet static
> address 192.168.1.3
> netmask 255.255.255.0
> network 192.168.1.0
> broadcast 192.168.1.255
> gateway 192.168.1.1
> # dns-nameservers 192.168.1.1
>
> #allow-hotplug eth1
> auto eth1
> iface eth1 inet static
> up /sbin/wondershaper eth1 320 320
> down /sbin/wondershaper remove eth1
> address 192.168.1.4
> netmask 255.255.255.0
> # network 192.168.1.0
> # broadcast 192.168.1.255
>
> #allow-hotplug eth2
> auto eth2
> iface eth2 inet static
> up /sbin/wondershaper eth2 320 320
> down /sbin/wondershaper remove eth2
> address 192.168.1.5
> netmask 255.255.255.0
> # network 192.168.1.0
> # broadcast 192.168.1.255
>
> ------------------------------------------------------------------------
> 2. /etc/init.d/iptables.sh
>
> # !/bin/sh
> iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
>
> ------------------------------------------------------------------------
> 3. /etc/sysctl.conf
> net.ipv4.conf.default.forwarding=1
> ------------------------------------------------------------------------
>
> But it's not working yet, maybe somebody know why and can help me.

Hi.

"not working" is a vague statement. I don't know about networking so I can't
help specifically. Just give us more info on what's not working.

--
Shachar Or | שחר אור
http://ox.freeallweb.org/


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 08-05-2008, 06:59 PM
Alexander
 
Default simple router

I want create my debian home router:

|"dslmodem" wan ppp0|<-->|eth0<-->(eth1,eth2 - shaping router)|<---|"lan" comp1,comp2|

I've created some configurations:
------------------------------------------------------------------------
1. /etc/network/interfaces

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface

#allow-hotplug eth0
auto eth0
iface eth0 inet static
address 192.168.1.3
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1
# dns-nameservers 192.168.1.1

#allow-hotplug eth1
auto eth1
iface eth1 inet static
up /sbin/wondershaper eth1 320 320
down /sbin/wondershaper remove eth1
address 192.168.1.4
netmask 255.255.255.0
# network 192.168.1.0
# broadcast 192.168.1.255

#allow-hotplug eth2
auto eth2
iface eth2 inet static
up /sbin/wondershaper eth2 320 320
down /sbin/wondershaper remove eth2
address 192.168.1.5
netmask 255.255.255.0
# network 192.168.1.0
# broadcast 192.168.1.255

------------------------------------------------------------------------
2. /etc/init.d/iptables.sh

# !/bin/sh
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE

------------------------------------------------------------------------
3. /etc/sysctl.conf
net.ipv4.conf.default.forwarding=1
------------------------------------------------------------------------

But it's not working yet, maybe somebody know why and can help me.


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 

Thread Tools




All times are GMT. The time now is 09:32 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org