LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Graphic program for sharing internet connection? (https://www.linuxquestions.org/questions/slackware-14/graphic-program-for-sharing-internet-connection-25358/)

elkrammer 07-08-2002 06:05 PM

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
:newbie:

elkrammer 07-08-2002 06:05 PM

Or any good howto....
(i already read that masquerading howto but found too boring and long! :) )

fafaforza 07-16-2002 07:27 AM

<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.

bbeers 07-16-2002 10:31 AM

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


All times are GMT -5. The time now is 05:54 AM.