danielsn Skrevet 21. juni 2007 Skrevet 21. juni 2007 Har søkt litt på nettet nå, men finner egentlig ikke så mye.. Noen som har en enkel guide på å route nettverk fra eth0 til eth1?
Lock-Aze Skrevet 21. juni 2007 Skrevet 21. juni 2007 (endret) Les om iptables og forwarding, så finner du det du leter etter. man iptables i konsollen. http://linux-net.osdl.org/index.php/Bridge Beklager at jeg ikke fant noe lettere, men det funker flott hvis du orker å sette deg litt inn i enten iptables eller bridging. Endret 21. juni 2007 av lock-aze
Xecuter Skrevet 21. juni 2007 Skrevet 21. juni 2007 Eller en enklere måte: Hello, The following will explain how to share your Internet connection: Note: Type all the following commands in a root terminal, DO NOT use sudo. 1. Start by configuring the network card that interfaces to the other computers on you network: # ifconfig ethX ip where ethX is the network card and ip is your desired server ip address (Usually 192.168.0.1 is used) 2. Then configure the NAT as follows: # iptables -t nat -A POSTROUTING -o ethX -j MASQUERADE where ethX is the network card that the Internet is coming from # echo 1 > /proc/sys/net/ipv4/ip_forward 3. Install dnsmasq and ipmasq using apt-get: # apt-get install dnsmasq ipmasq 4. Restart dnsmasq: # /etc/init.d/dnsmasq restart 5. Reconfigure ipmasq to start after networking has been started: # dpkg-reconfigure ipmasq 6. Repeat steps 1 and 2. 7. Add the line "net.ipv4.ip_forward = 1" to /etc/sysctl.conf # gedit /etc/sysctl.conf 8. Reboot. (Optional) Fra Ubuntuforums.org.
Anbefalte innlegg
Opprett en konto eller logg inn for å kommentere
Du må være et medlem for å kunne skrive en kommentar
Opprett konto
Det er enkelt å melde seg inn for å starte en ny konto!
Start en kontoLogg inn
Har du allerede en konto? Logg inn her.
Logg inn nå