Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Internet-sharing unter Gentoo
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
-=(BACKE)=-
n00b
n00b


Joined: 13 Oct 2004
Posts: 7

PostPosted: Wed Oct 13, 2004 10:22 am    Post subject: Internet-sharing unter Gentoo Reply with quote

Hallo...

Ich hoffe, mir kann hier geholfen werden. Ich habe schon in sämtlichen Foren rumgestöbert und schon einige Sachen ausprobiert, die dann nie das gemacht haben was ich/sie sollten...

Also zuerst meine Daten das Netzwerk betreffend.

Ich habe 2 Rechner:

1.Rechner

-direkt über LAN mit einer 10MBit-Leitung ans Internet gebunden per DHCP über eth0
-eth1 soll/hat interne IP 192.168.0.1
-Gentoo-linux installiert

2. Rechner

-hat interne IP 192.168.0.3 und soll Internet über den anderen Rechner via Crossoverkabel beziehen.

Der 2. Rechner soll nicht das Problem sein. Eher der Linux-rechner. Ich hatte schon mehrere Linux-derivate ausprobiert und bei fast jedem ein Tool gefunden, wo ich das Internet-sharing aktivieren konnte, was dann auch funktionierte.
Als gentoo-Einsteiger weiss ich allerdings ohne so ein Tool nicht weiter. Kann mir jemand helfen das Internet über eth1 an meinen 2. Rechner weiter zu leiten oder kann mir jemand sogar ein tool empfehlen, was mir das ganze unter Gnome abnimmt?

MfG -=(BACKE)=-
Back to top
View user's profile Send private message
Gekko
l33t
l33t


Joined: 29 Oct 2002
Posts: 773

PostPosted: Wed Oct 13, 2004 10:25 am    Post subject: Reply with quote

Guck dir mal Firestarter an, ist mit gtk+ programmiert, ist Klickibunti kompatibel und in Portage drin.
Back to top
View user's profile Send private message
schmutzfinger
Veteran
Veteran


Joined: 26 Oct 2003
Posts: 1287
Location: Dresden/Germany

PostPosted: Wed Oct 13, 2004 11:00 am    Post subject: Reply with quote

ansonsten google, zum thema iptables und NAT o. Masquerade.
Back to top
View user's profile Send private message
Tuna
Guru
Guru


Joined: 19 Jul 2002
Posts: 485
Location: Berlin

PostPosted: Wed Oct 13, 2004 12:10 pm    Post subject: Reply with quote

quick and dirty soluton:
Code:
echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
Back to top
View user's profile Send private message
-=(BACKE)=-
n00b
n00b


Joined: 13 Oct 2004
Posts: 7

PostPosted: Wed Oct 13, 2004 1:19 pm    Post subject: Reply with quote

hehe...wow...danke...

ich quäl mich hier schon seid nem monat mit dem zeug rum un 2 zeilen code machen, das die welt wieder in ordnung ist^^

danke :lol:
Back to top
View user's profile Send private message
ank666
Guru
Guru


Joined: 12 May 2004
Posts: 319
Location: CO/BY/DE

PostPosted: Thu Nov 25, 2004 10:14 am    Post subject: Reply with quote

Tuna wrote:
quick and dirty soluton:
Code:
echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE

Also bei mir hängt vor dem Gentoo Rechner noch ein DSL Router,
IPTables brauche ich also nicht, da mir das NAT des Router reicht,
allerdings soll der Gentoo Rechner für einen Client das Standardgateway im VPN Tunnel werden,
allerdings leitet er die Anfrage nicht weiter, die Traceroutes am Client enden alle auf dem Gentoo Rechner,
brauche ich für das ip_forwarding noch ein geladenes Kernel Modul, bzw. andere Feautres im Kernel?
_________________
Auf der Verpackung stand benötigt Windows 9x/2000/XP oder BESSER, deshalb hab ich Linux installiert
Back to top
View user's profile Send private message
psyqil
Advocate
Advocate


Joined: 26 May 2003
Posts: 2767

PostPosted: Thu Nov 25, 2004 10:39 am    Post subject: Reply with quote

quick and not that dirty:
http://www.tldp.org/HOWTO/Masquerading-Simple-HOWTO/index.html
Back to top
View user's profile Send private message
ank666
Guru
Guru


Joined: 12 May 2004
Posts: 319
Location: CO/BY/DE

PostPosted: Thu Nov 25, 2004 11:11 am    Post subject: Reply with quote

Ich weiss nicht, ob ich mein Problem klar ausgedrückt habe, ich brauchte eigentlich keine IPTables (Firewall),
da die Kiste eigentlich nur die Anfragen der VPN-Clients, an den DSL Router weiterleiten soll.

Kann das durch ip_forward und entsprechendem Default Gateway realisiert werden,
oder brauche ich wirklich IPTables für die Weiterleitung?
_________________
Auf der Verpackung stand benötigt Windows 9x/2000/XP oder BESSER, deshalb hab ich Linux installiert
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