2 VLAN routen

Post new topic   Reply to topic    DD-WRT Forum Index -> Allgemeine Fragen
Author Message
bennym82
DD-WRT Novice


Joined: 29 Nov 2009
Posts: 4

PostPosted: Sun Nov 29, 2009 10:29    Post subject: 2 VLAN routen Reply with quote
Hallo an alle hier,

ich hab ein kleines Config problem mit meinen router WRT54GS. Ich wollte zwei getrennete Netzwerke machen VLAN0 + VLAN2 das man ohne probleme über das Netzwerk zocken kann. aber irgendwie funktioniert das nicht. ich kann zwar von VLAN0 in VLAN2 zugreifen aber von VLAN2 nicht in VLAN0.

Hier mein iptables auszug
Code:

Chain INPUT (policy ACCEPT 0 packets, 0 bytes)
 pkts bytes target     prot opt in     out     source               destination
45847 9298K ACCEPT     0    --  *      *       0.0.0.0/0            0.0.0.0/0           state RELATED,ESTABLISHED
    0     0 ACCEPT     tcp  --  *      *       0.0.0.0/0            0.0.0.0/0           tcp dpt:1723
    0     0 ACCEPT     47   --  *      *       0.0.0.0/0            0.0.0.0/0
    0     0 DROP       udp  --  vlan1  *       0.0.0.0/0            0.0.0.0/0           udp dpt:520
    0     0 DROP       udp  --  br0    *       0.0.0.0/0            0.0.0.0/0           udp dpt:520
    0     0 ACCEPT     udp  --  *      *       0.0.0.0/0            0.0.0.0/0           udp dpt:520
    0     0 ACCEPT     41   --  *      *       0.0.0.0/0            0.0.0.0/0
    0     0 DROP       icmp --  vlan1  *       0.0.0.0/0            0.0.0.0/0
   43  1460 DROP       2    --  *      *       0.0.0.0/0            0.0.0.0/0
    0     0 ACCEPT     udp  --  vlan1  *       0.0.0.0/0            0.0.0.0/0           udp dpt:5060
    4   256 ACCEPT     0    --  lo     *       0.0.0.0/0            0.0.0.0/0           state NEW
12588  843K logaccept  0    --  br0    *       0.0.0.0/0            0.0.0.0/0           state NEW
  284 62104 ACCEPT     0    --  vlan2  *       0.0.0.0/0            0.0.0.0/0
 1009  106K DROP       0    --  *      *       0.0.0.0/0            0.0.0.0/0

Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
 pkts bytes target     prot opt in     out     source               destination
    0     0 ACCEPT     0    --  vlan2  br0     0.0.0.0/0            0.0.0.0/0           state NEW
    0     0 ACCEPT     47   --  *      vlan1   192.168.101.0/24     0.0.0.0/0
    0     0 ACCEPT     tcp  --  *      vlan1   192.168.101.0/24     0.0.0.0/0           tcp dpt:1723
 1074 68203 ACCEPT     0    --  vlan2  *       0.0.0.0/0            0.0.0.0/0
    0     0 ACCEPT     0    --  br0    br0     0.0.0.0/0            0.0.0.0/0
 4228  255K TCPMSS     tcp  --  *      *       0.0.0.0/0            0.0.0.0/0           tcp flags:0x06/0x02 TCPMSS clamp to PMTU
69336   31M lan2wan    0    --  *      *       0.0.0.0/0            0.0.0.0/0
65687   31M ACCEPT     0    --  *      *       0.0.0.0/0            0.0.0.0/0           state RELATED,ESTABLISHED
    0     0 TRIGGER    0    --  vlan1  br0     0.0.0.0/0            0.0.0.0/0           TRIGGER type:in match:0 relate:0
 3649  227K trigger_out  0    --  br0    *       0.0.0.0/0            0.0.0.0/0
 3649  227K ACCEPT     0    --  br0    *       0.0.0.0/0            0.0.0.0/0           state NEW
    0     0 DROP       0    --  *      *       0.0.0.0/0            0.0.0.0/0

Chain OUTPUT (policy ACCEPT 48931 packets, 9152K bytes)
 pkts bytes target     prot opt in     out     source               destination
Sponsor
pepe
DD-WRT Guru


Joined: 16 Jun 2006
Posts: 2427
Location: Berlin, Germany

PostPosted: Sun Nov 29, 2009 10:43    Post subject: Reply with quote
Sollte helfen
Code:
iptables -I FORWARD 1 -i br0 -o vlan2 -j ACCEPT
iptables -I FORWARD 2 -i vlan2 -o br0 -j ACCEPT

unter Administration Commands eintragen und als Firewall Regel Speichern.
Router einmal neustarten!

_________________
http://www.dd-wrt.com/phpBB2/search.php?
http://www.dd-wrt.com/wiki/index.php/Main_Page
http://www.dd-wrt.com/wiki/index.php/Category:Deutsche_Dokumentation

http://i-use.ipfire.org/profile/454051a193d29c9019ea3d0ce3c4b801435fd682/0.png
bennym82
DD-WRT Novice


Joined: 29 Nov 2009
Posts: 4

PostPosted: Sun Nov 29, 2009 11:45    Post subject: Reply with quote
Hi, danke für die regeln.
Jetzt hab ich ein neues Problem nun kann ich erst eine IP im VLAN0 erreichen wenn diese vorher auf VLAN2 zugegriffen hat?

genaue beschreibung

ping VLAN2->VLAN0 192.168.178.33 auf 192.168.101.100 nicht erreichbar
ping VLAN0->VLAN2 192.168.101.100 auf 192.168.178.33 erreichbar
ping VLAN2->VLAN0 192.168.178.33 auf 192.168.101.100 dann erst erreichbar
pepe
DD-WRT Guru


Joined: 16 Jun 2006
Posts: 2427
Location: Berlin, Germany

PostPosted: Sun Nov 29, 2009 12:39    Post subject: Reply with quote
Ja keine Ahnung wie du bei der Einrichtung vorgegangen bist.
Hier so wie es sein sollte.
    1: unter Setup -> VLANs die benötigten ports aus vlan0 raus trennen und in vlan2 einfügen.
    z-B. haken bei port4/vlan0 entfernen und bei vlan2 setzen (Assigned To
    Bridge = None)
    Abspeichern und anwenden.
    2: unter Setup -> Networking -> Port Setup
    Network Configuration vlan2 =>bei Unbridged den haken setzen ip und subnetzmaske einstellen.
    Abspeichern und anwenden.
    3: unter Setup -> Networking -> DHCPD
    einen dhcp erstellen für vlan2 wenn du keinen brauchst dann lass es weg.
    4: die Firewall regeln eintragen.
    abspeichern Router neustarten.

um sicherzugehen vorher den Router mal komplett reseten (30/30/30 sec. reset) und dann alles von Hand neu einstellen keine alten Backups einspielen um sicherzustellen das keine alten „verkorksten werte im nvram stehen die die Sache durcheinander bringen.

_________________
http://www.dd-wrt.com/phpBB2/search.php?
http://www.dd-wrt.com/wiki/index.php/Main_Page
http://www.dd-wrt.com/wiki/index.php/Category:Deutsche_Dokumentation

http://i-use.ipfire.org/profile/454051a193d29c9019ea3d0ce3c4b801435fd682/0.png
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Allgemeine Fragen 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 can attach files in this forum
You can download files in this forum