Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (2) </ 1 [2] >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: DSL internet sharing, A question about internet sharing.< Next Oldest | Next Newest >
northface Offline





Group: Members
Posts: 14
Joined: Jan. 2006
Posted: Jan. 24 2006,03:44 QUOTE

IPCHAINS
This assumes that your external interface is called `ppp0'. Use ifconfig to find out, and adjust to taste.
# ipchains -P forward DENY
# ipchains -A forward -i ppp0 -j MASQ
# echo 1 > /proc/sys/net/ipv4/ip_forward

IPTABLES
http://en.tldp.org/HOWTO....TRONGER

that link will take you to a howto for IPTABLES

look for:

#CRITICAL:  Enable IP forwarding since it is disabled by default since
#
#           Redhat Users:  you may try changing the options in
#                          /etc/sysconfig/network from:
#
#                       FORWARD_IPV4=false
#                             to
#                       FORWARD_IPV4=true
#
echo "  Enabling forwarding.."
echo "1" > /proc/sys/net/ipv4/ip_forward

if you pay close attention to the directions its quite possible to turn linux into a router and firewall. you could buy one, or you could save money but not time and configure it manually.

"Without struggle there is no progress"
Frederick Douglas
Back to top
Profile PM 
AwPhuch Offline





Group: Members
Posts: 1404
Joined: April 2004
Posted: Jan. 24 2006,23:38 QUOTE

Why do all that?!?!?!

Just get the iptables.dsl and rc.firewall.dsl
http://projectfiles.com/firewall/
http://projectfiles.com/firewall/config.html

Then if you are using "frugal" mode just edit the rc.local file...

It is a simple script, but is capable of doing tons upon tons of stuff..internet sharing, port forwarding, routing, you name it..with just a few simple script modifications you could make a small DSL machine into one hell of a powerful router/firewall...

or you could build you a SmoothWall Express 2.0 box

Brian
AwPhuch


--------------
http://www.frappr.com/dsl <-- Where do you use DSL?
http://www.smoothwall.org <-- Ultimate firewall for the world!
http://boinc.mundayweb.com/one/stats.php/userID:6107 <--My BOINC stats!
./S99LinuxRevolution start
Back to top
Profile PM WEB 
6 replies since Jan. 20 2006,22:16 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (2) </ 1 [2] >/
reply to topic new topic new poll
Quick Reply: DSL internet sharing

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code