Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Networking & Security
  • Search

Internet network sharing

Having problems getting connected to the internet or running a server? Wondering about securing your box? Ask here.
Post Reply
Advanced search
5 posts • Page 1 of 1
Author
Message
Visseroth
Apprentice
Apprentice
Posts: 291
Joined: Mon Oct 13, 2003 4:27 am
Location: Idaho

Internet network sharing

  • Quote

Post by Visseroth » Thu Jul 01, 2004 7:39 am

I have two network cards, eth0 and eth1

I currently have my ADSL modem on eth0 and would like to share the internet to eth1, how do I go about doing it? is there a network sharing howto page? if so where cause I couldn't locate it.
Top
Rafje
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 109
Joined: Wed May 19, 2004 9:27 pm
Location: .be

  • Quote

Post by Rafje » Thu Jul 01, 2004 8:46 am

http://www.tldp.org/HOWTO/IP-Masquerade ... index.html is a good starting point.

Cheers
Top
beowulf918
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 147
Joined: Tue Dec 03, 2002 6:42 pm
Location: The Gambia

  • Quote

Post by beowulf918 » Thu Jul 01, 2004 8:51 am

See the masquerade target in the iptables(8) man page. If memory serves correctly, you'll want to do something like:

Code: Select all

iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
James.
Top
psingcaster
n00b
n00b
User avatar
Posts: 59
Joined: Wed Apr 24, 2002 3:51 pm
Location: Québec, Canada

Problem...

  • Quote

Post by psingcaster » Wed Jul 07, 2004 6:04 pm

I have an ADSL connection too and I try to use this rule
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
It work but most of the web site are not accessible and the connection is a little slow.

Some people told me it was a MTU problem. I don't know if it's correct and if it is, how I can solve the problem?!?
Top
Putrifier
n00b
n00b
Posts: 46
Joined: Tue Jun 29, 2004 3:29 pm

  • Quote

Post by Putrifier » Wed Jul 07, 2004 6:09 pm

I suggest you use this script, from the Documentation, Tricks and Tips section of this very own Gentoo forum. http://forums.gentoo.org/viewtopic.php?t=159133 . Thats what Ive used for my network, which has the exact configuration with yours. just follow the instructions, and you'll be ready in no time. :)
Top
Post Reply

5 posts • Page 1 of 1

Return to “Networking & Security”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic