Re: bridge or vlan

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, 20 Oct 2007 14:23:12 +0300
"Vaidas M" <admin@xxxxxx> wrote:

> Hello to everyone,
> 
>  
> 
> Here is the situation:
> 
> [LAN1]---[eth3]/----------\
> 
>                | LinuxBR  |[eth2]---[LAN0]---[linuxGW]---[internet]
> 
> [LAN2]---[eth4]\----------/
> 
> Whole LAN is in subnet 10.0.0.0/24.
> 
>  
> 
> So I need:
> 
> LAN0, LAN1, LAN2 could not see each other.
> 
> LAN0, LAN1, LAN2 is in same subnet (10.0.0.0/24).
> 
> All LANs have to get only internet.
> 
>  
> 
> How can I configure LinuxBR to do so?
> 
> Do I have to do only bridge? Or only vlan? Or both?
> 

On LinuxBR:
	iptables -A FORWARD -s 10.0.0.0/24 -d linuxGW_IP/32 -j ACCEPT
	iptables -A FORWARD -s 10.0.0.0/24 -d 10.0.0.0/24 -j DROP
	iptables -t nat -A POSTROUTING -s 10.0.0.0/24 -d linuxGW_IP/32 -j MASQUERADE

On linuxGW:
	iptables -t nat -A POSTROUTING -s LinuxBR_IP/32 -j MASQUERADE

-- 
With best regards, Pan'ko Alexander.
_______________________________________________
LARTC mailing list
LARTC@xxxxxxxxxxxxxxx
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux