VLANs on Wireless Bridge

Post new topic   Reply to topic    DD-WRT Forum Index -> Advanced Networking
Author Message
dbsoundman
DD-WRT Novice


Joined: 04 Jun 2012
Posts: 14

PostPosted: Mon Jun 04, 2012 20:54    Post subject: VLANs on Wireless Bridge Reply with quote
First post, complicate scenario. Here we go:

I have a primary router (Linksys WRT54GL) which is the primary DHCP server, and runs the wireless network. My server is connected via wired connection to this router. I have a secondary dd-wrt router (also Linksys WRT54GL) acting as a wireless bridge to connect an ethernet-to-serial adapter in another room to the main network. I ONLY access the serial adapter via the server connected to the main router.

What I want to do is set up a VLAN on the SECONDARY router to segregate the ethernet to serial adapter and future devices from multicast/broadcast messages on the LAN, AND isolate them from the WAN/internet. All I want to be able to do is access them from the server on the primary router. I found a tutorial on how to create isolated VLANs but I'm not too sure on the firewall settings. I guess I don't quite understand how I can set up access such that I can get to it from the server but not send it other network broadcasts. I hope this makes sense...

For the sake of example, I'll say that the primary router has gateway 192.168.1.1, the secondary is 192.168.2.1, and we'll make the VLAN 10.0.0.1. If the secondary router sees the general wifi connection as vlan0, and the isolated network is vlan1, can I simply direct my server to look for the serial device at a 10.0.0.x address? What specific firewall commands would I need to filter all other traffic away from vlan1?

Based on the tutorial (see below), I think I need something like this:
Code:
iptables -I FORWARD -i vlan+ -o vlan+ -j DROP
iptables -I FORWARD -i vlan+ -o vlan1 -j ACCEPT
iptables -I FORWARD -i vlan1 -o vlan+ -j ACCEPT


However I'm not sure if the "directions" are correct, or if they're strong enough/too strong. Does anyone have suggestions or tips for what I'm doing?

The tutorial I referenced is here: http://www.dd-wrt.com/phpBB2/viewtopic.php?t=144630

Thanks a lot!
Sponsor
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Advanced Networking All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum