Talk About Network

Google





Software > Linux Debian Maint Firewall > simple router
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 7 Topic 1592 of 1645
Post > Topic >>

simple router

by Alexander <alex.golovin@[EMAIL PROTECTED] > Aug 5, 2008 at 07:20 PM

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@[EMAIL PROTECTED]
 
with a subject of "unsubscribe". Trouble? Contact
listmaster@[EMAIL PROTECTED]

 




 7 Posts in Topic:
simple router
Alexander <alex.golovi  2008-08-05 19:20:23 
Re: simple router
Shachar Or <dawnlight@  2008-08-05 19:30:12 
Re: simple router
Ezequiel Larrarte <ela  2008-08-05 20:00:21 
Re: simple router
Ezequiel Larrarte <ela  2008-08-05 20:10:16 
Re: simple router
Alexander <alex.golovi  2008-08-05 20:40:08 
Re: simple router
"A n d i k a Triwida  2008-08-05 21:40:12 
Re: simple router
"Wojciech Ziniewicz&  2008-08-05 22:50:16 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
localhost-V2008-12-19 Fri Jan 9 12:33:08 PST 2009.