Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Beide Seiten der vorigen RevisionVorhergehende Überarbeitung
Nächste Überarbeitung
Vorhergehende Überarbeitung
router [2008/06/16 10:09] – Externe Bearbeitung 127.0.0.1router [2024/02/29 13:36] (aktuell) – Externe Bearbeitung 127.0.0.1
Zeile 1: Zeile 1:
 +====== Howto Setup Linux as router for ppp dial up (PSTN/ISDN) connections ======
 +
 +Quelle((http://www.cyberciti.biz/tips/linux-as-router-for-ppp-pstnisdn-connections.html))
 +
 +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/Debian Linux (this should work with ALL Other distros as well :D )
 +
 +(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:
 +<code> # vi /etc/sysctl.conf</code>
 +2) Add/modify following line:
 + net.ipv4.ip_forward = 1
 +Step # 2 Restart network
 +<code># /etc/init.d/network restart</code>
 +OR
 +<code> # service network restart</code>
 +(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:
 +
 +<code> # iptables --table nat --append POSTROUTING --out-interface ppp0 -j MASQUERADE
 + # iptables --append FORWARD --in-interface eth0 -j ACCEPT</code>
 + 
 +Step # 4 You are done! Test it with ping or dig:
 +<code>
 + # ping your-isp.com
 + # dig www.nixcraft.com
 + # dig yahoo.com
 +</code>
 +Step # 5 Point all client to your eth0 IP address as Router/Gateway.
 +
 +Step # 6 Put code described in step # 3 to script and call it from /etc/rc.local
 +
 +
 +
 +====== Default-Passwords of routers ======
  
-Default-Passwords of routers 
  
 <code> <code>
 
Nach oben
router.1213610994.txt.gz · Zuletzt geändert: 2024/02/29 13:35 (Externe Bearbeitung)
chimeric.de = chi`s home Creative Commons License Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0
DFmW2CEce3htPL1uNQuHUVu4Tk6WXigFQp   Dogecoin Donations Accepted Here    DFmW2CEce3htPL1uNQuHUVu4Tk6WXigFQp  DFmW2CEce3htPL1uNQuHUVu4Tk6WXigFQp