Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Auf meinen Server einen Router mit WLAN AP machen?
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
ConiKost
Developer
Developer


Joined: 11 Jan 2005
Posts: 1371

PostPosted: Tue Aug 29, 2006 2:55 pm    Post subject: Auf meinen Server einen Router mit WLAN AP machen? Reply with quote

Hallo!
Ich habe hier einen PC als Server stehen.

Momentan ist der per WLAN extern an einen externen Router angebunden und der LAN Port ist nicht in benutzung.

Ich möchte nun gerne meinen externen Router in Rente schicken und diesen PC als Router einsetzen.

Wie kann ich die WLAN Karte im AP Modus nutzen? (ist eine Atheros a/b/g AR5006XS). Und per LAN Port soll das Modem ran!

Wie muss ich vorgehen?
Back to top
View user's profile Send private message
dreadhead
Guru
Guru


Joined: 09 Jul 2004
Posts: 470
Location: Ulm - Germany

PostPosted: Tue Aug 29, 2006 4:12 pm    Post subject: Reply with quote

iwconfig wlan0 mode master

steht alles in der man-page von iwconfig.

um dann einen Router daraus zu machen:

in /etc/sysctl.conf den Eintrag ipv4_forward auf 1 setzen

dann benötigst du noch iptables und definierst folgende regel:

iptables -t nat -A PREROUTING -i wlan0 -o eth0 -s x.x.x.0/x -j MASQUERADE

näheres zum routing mit iptables findes am besten in google.
_________________
Kopete OTR Plugin
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) All times are GMT
Page 1 of 1

 
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