LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Closed Thread
  Search this Thread
Old 07-12-2004, 11:22 AM   #1
fabio_listas
LQ Newbie
 
Registered: Jul 2004
Posts: 6

Rep: Reputation: 0
Question Connecting 2 Slackware 10.0 machines! Uncommenting rc.modules


Hi!
I want to connect 2 slackware 10.0 machines (crossover cable), but I dont know how to edit the rc.modules. I am trying to uncomment these lines

EXTERNAL=eth0
INTERNA=eth1
echo 1 > /proc/sys/net/ipv4/id_forward
echo "Setting up NAT (Network Address Translation)..."
# by default, nothing is forwarded.
iptables -p FORWARD DROP
# Allow all connections OUT and only related ones IN
iptables -A FORWARD -i $EXTERNAL -o $INTERNAL -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -A FORWARD -i $INTERNAL -o $EXTERNAL -j ACCEPT
# enable MASQUERADING
iptables -t nat -A POSTROUTIGN -o $EXTERNAL -j MASQUERADE

I have an ADSL Internet connection (dinamic ip), that comes from... eth0? I want to share this connection through... eth1??
In the other machine, that will receive the shared connection, what should I do?! Uncommenting these lines too? 'ifconfig'? 'route'?

txs in advance.. sorry my bad english
 
Old 07-12-2004, 02:10 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Since you also posted the same thing in the more
appropriate Slack-Install forum I'll close this thread
and remind you of the rules you agreed to when
you signed up. NO CROSS-POSTING


Cheers,
Tink

Last edited by Tinkster; 07-12-2004 at 02:12 PM.
 
  


Closed Thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
connecting two machines mushmaster Linux - Networking 8 10-15-2005 10:41 AM
Connecting 2 Linux machines ruh31 Linux - Networking 4 12-23-2004 02:04 AM
Connecting 2 slack 10.0 machines. Uncommenting rc.modules, sharing adsl connection fabio_listas Slackware - Installation 0 07-12-2004 11:36 AM
Connecting to Windows NT machines on LAN rgarg Linux - Networking 2 07-06-2003 11:20 PM
connecting two machines vicente Linux - General 1 10-23-2001 07:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:57 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration