LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-02-2004, 02:45 PM   #1
Daemon187
LQ Newbie
 
Registered: Jul 2003
Distribution: Slackware Linux
Posts: 9

Rep: Reputation: 0
pppoe MASQUERADING?


I have pppoe external and eth0 internal. My problem start with sharing the internet to my second computer. In windows is simple , i have a wingate install and every think is OK.
But in slackware i don't know how to share this .
my scripts are:
if [ -x /usr/sbin/adsl-start ]; then
/usr/sbin/adsl-start && echo -n " PPPoE "
fi

EXTERNAL=ppp+
EXTERNAL2=eth1
INTERNAL=eth0
echo 1 > /proc/sys/net/ipv4/ip_forward

iptables -t nat -A POSTROUTING -o $EXTERNAL -j MASQUERADE
iptables -t nat -A POSTROUTING -o $EXTERNAL2 -j MASQUERADE
/etc/webmin/start >/dev/null 2>&1 </dev/null # Start Webmin

and this:

# Generated by iptables-save v1.2.7a on Sat Jul 12 21:15:24 2003
*nat
:PREROUTING ACCEPT [51:4039]
:POSTROUTING ACCEPT [30:2304]
:OUTPUT ACCEPT [21:1872]
-A POSTROUTING -s 192.168.0.0/255.255.0.0 -o eth0 -j MASQUERADE
COMMIT
# Completed on Sat Jul 12 21:15:24 2003
 
Old 07-03-2004, 07:13 AM   #2
Daemon187
LQ Newbie
 
Registered: Jul 2003
Distribution: Slackware Linux
Posts: 9

Original Poster
Rep: Reputation: 0
Thumbs up

10nx for the Answers
 
  


Reply


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
Masquerading nanoprobe SUSE / openSUSE 2 06-11-2005 10:27 AM
help ip masquerading campusloop Linux - Networking 1 05-20-2004 12:37 PM
adsl-status can't read pppoe PID file with rp-pppoe program setup Smarvy Linux - Newbie 2 03-13-2004 11:35 PM
IP Masquerading help!!!! estranged0877 Linux - Networking 22 03-07-2003 11:07 AM
IP Masquerading kwigibo Linux - Networking 3 09-21-2002 07:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:55 AM.

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