LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 02-18-2005, 06:39 PM   #1
ziox
Member
 
Registered: Apr 2004
Distribution: RedHat, Fedora, Suse, Debian, Gentoo, Mandrake
Posts: 132

Rep: Reputation: 15
Internet Connection Sharing


HellO...
any idea about Internet Connection Sharing in linux..




Its just few clicks when you do it from windows to linux
what about from linux to other OSs
 
Old 02-18-2005, 07:13 PM   #2
musicman_ace
Senior Member
 
Registered: May 2001
Location: Indiana
Distribution: Gentoo, Debian, RHEL, Slack
Posts: 1,555

Rep: Reputation: 46
check out iptablesrocks.org there scripts there for a variety of situations. Its likely that you'll just need the one for Cable/DSL internet access

Yeah, its a few clicks in windows, but its also extrememly insecure. The best quote I can give is this

"Monkeys can push buttons and click a mouse, but if you want to have a secure and stable OS, you need to learn how it works."
--Some dude from a defunct linux site.

While the person who said it was sort of a jerk, it kind of hold true. Windows is painlessly easy, and therefore painfully insecure.

Last edited by musicman_ace; 02-18-2005 at 07:16 PM.
 
Old 02-18-2005, 11:27 PM   #3
sixth_sense
Member
 
Registered: Mar 2004
Distribution: RedHat
Posts: 99

Rep: Reputation: 15
try this script on /etc/rc.d/rc.local

------------------------------------------------------------------
echo 1 > /proc/sys/net/ipv4/ip_forward

/sbin/iptables -A POSTROUTING -t nat -s x.x.x.x/y.y.y.y -o eth3 -j SNAT --to-source z.z.z.z

-----------------------------------------------------------------


x.x.x.x/y.y.y.y represent your local ipaddress and netmask u want user user to assign while z.z.z.z represent the outgoing interface ip address you have got from ur internet service provider.

hope this will work for you. have fun ;-)
 
Old 02-19-2005, 06:48 PM   #4
ziox
Member
 
Registered: Apr 2004
Distribution: RedHat, Fedora, Suse, Debian, Gentoo, Mandrake
Posts: 132

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by musicman_ace
check out iptablesrocks.org there scripts there for a variety of situations. Its likely that you'll just need the one for Cable/DSL Internet access

Yeah, its a few clicks in windows, but its also extrememly insecure. The best quote I can give is this

"Monkeys can push buttons and click a mouse, but if you want to have a secure and stable OS, you need to learn how it works."
--Some dude from a defunct linux site.

While the person who said it was sort of a jerk, it kind of hold true. Windows is painlessly easy, and therefore painfully insecure.
thank you for your great advices

should any one to pass connection using dail-up NOT DSL use the firewall ...???
and also i don't care about security too much right here i'm not running any servers (just i want to put windows behind linux)
 
Old 02-20-2005, 08:38 AM   #5
fr_laz
Member
 
Registered: Jan 2005
Location: Cork Ireland
Distribution: Debian
Posts: 384

Rep: Reputation: 32
Hi,

firewalling is ever a good idea, even on a low speed connexion :
even though you may not worry much about your datas, someone can still use your machine so as to do bad things on Internet, such things can happen to anybody, consequences become more and more important (see www.securityfocus.org for some examples).

sixth_sense gave you the comands to share Internet (no firewalling in what he wrote). You can add these lines in his script :

# Default behaviour : drop all
iptables -P INPUT DROP
iptables -P OUTPUT DROP
iptables -P FORWARD DROP

# Accept outgoing traffic any protocol, any destination
iptables -A INPUT -m state --state ESTABLISHED -j ACCEPT
iptables -A OUTPUT -m state --state NEW,ESTABLISHED -j ACCEPT

# Accept all traffic coming from LAN to INTERNET
iptables -A FORWARD -i $INTERNET_IFACE -m state --state ESTABLISHED -j ACCEPT
iptables -A FORWARD -o $INTERNET_IFACE -m state --state NEW,ESTABLISHED -j ACCEPT

It's far from being the more paranoid config, but it's a begining...
 
  


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 explorer Mandriva 1 03-17-2005 06:25 PM
Internet connection sharing mark_booze Linux - Newbie 22 01-02-2004 12:37 AM
internet connection sharing Sathe Linux - Newbie 4 12-05-2001 08:59 PM
internet connection sharing Danobri Linux - Networking 14 07-21-2001 11:50 PM
Internet Connection Sharing qsilver Linux - Networking 1 07-19-2001 01:31 AM

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

All times are GMT -5. The time now is 08:29 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
Open Source Consulting | Domain Registration