LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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, 12:22 PM   #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, 03:10 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
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 03:12 PM.
 
  


Closed Thread


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 11:41 AM
Connecting 2 Linux machines ruh31 Linux - Networking 4 12-23-2004 03:04 AM
Connecting 2 slack 10.0 machines. Uncommenting rc.modules, sharing adsl connection fabio_listas Slackware - Installation 0 07-12-2004 12:36 PM
Connecting to Windows NT machines on LAN rgarg Linux - Networking 2 07-07-2003 12:20 AM
connecting two machines vicente Linux - General 1 10-23-2001 08:33 PM


All times are GMT -5. The time now is 04:26 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration