iptables zugriff

Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC basierende Hardware
Author Message
franks
DD-WRT Novice


Joined: 28 Jul 2008
Posts: 33

PostPosted: Thu Nov 08, 2012 17:46    Post subject: iptables zugriff Reply with quote
hallo ,
ich habe zwei wrt54

wrt54.1 --> angeschlossen ans internet (ipadresse 192.168.0.100)
wrt54.2 --> angschlossen an wrt54.1

ich möchte dass das wlan keinen zugriff auf das lan hat und habe folgende firewall regeln angelegt und auf wrt54.2 gespeichert. nun habe ich über wlan keine internetverbindung mehr. was ist da falsch?

Code:

iptables -I FORWARD 1 -i eth1 -d 192.168.0.100/32 -j ACCEPT
iptables -I FORWARD 2 -i eth1 -d 192.168.0.0/24 -j DROP
iptables -I FORWARD 3 -i br0 -d 192.168.0.0/24 -j DROP
Sponsor
franks
DD-WRT Novice


Joined: 28 Jul 2008
Posts: 33

PostPosted: Thu Nov 08, 2012 18:38    Post subject: Reply with quote
kodo wrote:
Warum wird eigentlich nicht die bridged/unbridged Option im Webinterface benutzt?


ich habe schon viele ausprobiert. wie kann ich das machen. der wan port beim wrt54.2 wird nciht benutzt.
franks
DD-WRT Novice


Joined: 28 Jul 2008
Posts: 33

PostPosted: Thu Nov 08, 2012 19:12    Post subject: Reply with quote
kodo wrote:
Wieso WAN, hier geht es doch um WLAN. Also sieh auf dem Wireless Tab nach.


sobald ich das wlan aus der bridge nehme und einen anderes ip-adressen bereich nehme bekomme ich keine verbindung ins internet. dhcp funktioniert. am notebook ist als gateway wrt54.2 angegeben, auf wrt54.2 ist als gateway wrt54.1 angegeben.

aus diesem grund habe den murx mit ip tables versucht.
franks
DD-WRT Novice


Joined: 28 Jul 2008
Posts: 33

PostPosted: Thu Nov 08, 2012 19:45    Post subject: Reply with quote
kodo wrote:
ist mir zu hoch, passe Wink


+ router laufen beide auf 192.168.0.x
+ wlan funktioniert
+ dhcp funktioniert

sobald ich das wlan auf unbridge setze und meinlaptop eine adresse aus einem anderen ip bereich bekommt: z.b. 10.0.0.x geht nicht´s mehr.
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC basierende Hardware 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