LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 07-08-2002, 06:05 PM   #1
elkrammer
LQ Newbie
 
Registered: Jul 2002
Location: Chile
Distribution: Debian Sid
Posts: 29

Rep: Reputation: 15
Question Graphic program for sharing internet connection?


Do you know any program that automatic configures your system for sharing an internet conection using my eth2? eth1 is for the cable modem....


thanks in advance
 
Old 07-08-2002, 06:05 PM   #2
elkrammer
LQ Newbie
 
Registered: Jul 2002
Location: Chile
Distribution: Debian Sid
Posts: 29

Original Poster
Rep: Reputation: 15
Or any good howto....
(i already read that masquerading howto but found too boring and long! )
 
Old 07-16-2002, 07:27 AM   #3
fafaforza
LQ Newbie
 
Registered: Jul 2002
Posts: 5

Rep: Reputation: 0
<smart ass reply>
I believe it is called Internet Connection Sharing. However, you might need some flavor of Windows to run it in. And hey, did you see Windows XP? Did you see the exciting new colors and menus?
</smart ass reply>

Seriously though, last time I set up nat on slack, all it entailed was configuring ipchains/iptables and writing a few (3?) lines to an rc file.

You should be able to just copy stuff available online and change the IPs, etc, to suit your setup.
 
Old 07-16-2002, 10:31 AM   #4
bbeers
Member
 
Registered: Jul 2002
Location: Florida
Distribution: Centos, Slackware
Posts: 260

Rep: Reputation: 30
if [ ${KERNEL_VERSION} < "2.4.x" ]; then
/bin/echo "1" > /proc/sys/net/ipv4/ip_forward
/bin/echo "1" > /proc/sys/net/ipv4/ip_dynaddr
/bin/echo "1" > /proc/sys/net/ipv4/ip_always_defrag
/bin/echo "1" > /proc/sys/net/ipv4/ip_masq_udp_dloose

/sbin/modprobe ip_masq_portfw
/sbin/modprobe ip_masq_autofw
/sbin/modprobe ip_masq_ftp
/sbin/modprobe ip_masq_irc
/sbin/modprobe ip_masq_raudio

for CHAIN in forward input output; do
${IPCHAINS} -F ${CHAIN}
done
${IPCHAINS} -P forward DENY
${IPCHAINS} -A forward -s ${NETWORK}/${NETMASK} -j MASQ
else
${IPTABLES} -F
${IPTABLES} -t nat -F
${IPTABLES} -t nat -A POSTROUTING -o ${WAN_IFACE} -j MASQUERADE
${IPTABLES} -A FORWARD -i ${LAN_IFACE} -j ACCEPT
/bin/echo "1" > /proc/sys/net/ipv4/ip_forward
/bin/echo "1" > /proc/sys/net/ipv4/ip_dynaddr
fi

Is this what you're looking for? Will require some tweaking on your part.
It's not graphical, and I call it rc.firewall, even though it's really just a simple ip masquerading setup. Hope this helps. If you really want a graphical tool, check out:

http://www.linux-firewall-tools.com/...all/index.html

-Bob
 
  


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
Internet Connection Sharing Xelopheris Linux - Networking 1 02-28-2005 12:08 PM
Internet Connection Sharing quozt Linux - General 7 09-08-2003 09:06 PM
Sharing Internet Connection andy18 Linux - Networking 6 05-06-2003 03:00 PM
Internet Connection Sharing Keys Linux - Networking 5 03-09-2003 03:48 PM
Internet Connection Sharing joe7.1 Linux - Newbie 0 02-07-2002 12:25 AM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration