Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Nächste Überarbeitung | Vorhergehende ÜberarbeitungLetzte ÜberarbeitungBeide Seiten der Revision | ||
router [2008/05/20 15:17] – angelegt gerald | router [2009/12/22 17:43] – gerald | ||
---|---|---|---|
Zeile 1: | Zeile 1: | ||
+ | ====== Howto Setup Linux as router for ppp dial up (PSTN/ISDN) connections ====== | ||
+ | |||
+ | Quelle((http:// | ||
+ | |||
+ | This step by step howto will help you to setup Linux as router only in two (2) minutes. I'm assuming that your setup is as follows: | ||
+ | |||
+ | (A) You are using RedHat Linux, FC linux/ | ||
+ | |||
+ | (B) ppp0 is internet interface (connected to Modem for example) and eth0 connected to your internal lan (connected to your HUB/Switch for example) | ||
+ | * My Linux --> eth0 | ||
+ | * Box --> ppp0 (comes up when you dial up into ISP) | ||
+ | |||
+ | Step # 1 Turn on ip forwarding in kernel | ||
+ | |||
+ | 1) Open linux kernel configuration file: | ||
+ | < | ||
+ | 2) Add/modify following line: | ||
+ | | ||
+ | Step # 2 Restart network | ||
+ | < | ||
+ | OR | ||
+ | < | ||
+ | (Note first dial to ISP using wvdial or similar program ) | ||
+ | |||
+ | Step # 3 Setup IP forwarding and Masquerading (to act as router), you need to use NAT option of iptables as follows: | ||
+ | |||
+ | < | ||
+ | # iptables --append FORWARD --in-interface eth0 -j ACCEPT</ | ||
+ | |||
+ | Step # 4 You are done! Test it with ping or dig: | ||
+ | < | ||
+ | # ping your-isp.com | ||
+ | # dig www.nixcraft.com | ||
+ | # dig yahoo.com | ||
+ | </ | ||
+ | Step # 5 Point all client to your eth0 IP address as Router/ | ||
+ | |||
+ | Step # 6 Put code described in step # 3 to script and call it from / | ||
+ | |||
+ | |||
+ | |||
+ | ====== Default-Passwords of routers ====== | ||
- | Default-Passwords of routers | ||
< | < |