[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: installing linux



Ok, first understand that for this to work, the computer with Libranet must be on and running for the internet to work on any of the networked computers (fine if no one else uses them...). You must also have two network cards, one going to the cable modem, the other to some sort of hub.

First, make sure you have iptables installed:

apt-get install iptables

then go into adminmenu and click the "recompile kernel" option. Select the following options:

Networking options --->
	[*] Network packet filtering
	....
	[*] IP: advanced router
	....
	IP Netfilter Configuration --->
		Make all options [M] EXCEPT:
			*All options with (EXPERIMENTAL) after them
			*ipchains
			*ipfwadm


This proceedure will build a new kernel with routing support built in. Next, you can create a firewall script to blackade your machine and masquerade for the computers behind your network (masquerading simply means passing packets from the router to any machine on your network). Here's mine (it's not complete, but it works):

#!/bin/sh

# Flush it out!
iptables -F
iptables -F -t nat
iptables -F -t mangle

# Set up firewalling/masquerading

# NOTE! Replace ppp0 with the device you use to connect to the internet (eth0 or eth1)
iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE
iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
# Replace ppp0 here too.
iptables -A INPUT -m state --state NEW -i ! ppp0 -j ACCEPT
iptables -P INPUT DROP

# Uncomment these to open specific ports (if you want to use a Web server/ftp server/etc).
#iptables -A INPUT --protocol tcp --dport 80 -j ACCEPT
#iptables -A INPUT --protocol tcp --dport 3000 -j ACCEPT
#iptables -A INPUT --protocol tcp --dport 21 -j ACCEPT

# End of firewall.sh

If you need any more help, feel free to ask. I use DSL, so the proceedure for setting up the internet connection isn't the same. Other list members should be able to help. I'll try to find some docs online for this sort of thing.

-Sam

[email protected] wrote:

> In a message dated 1/20/2002 10:10:34 PM Eastern Daylight Time, 
> [email protected] writes:
> 
> 
> > I use my desktop machine as a web server/router too. All you need is two 
> > ethernet cards. It works great, no speed degradation or anything. I can 
> > give you more info on doing this is you want.
> > 
> 
> please send me any infor that you have in a way that i could easily 
> understand it
> 

-- 
The archive is at https://www.libranetlinux.com/archive.html
To unsubscribe, send email to [email protected]
with a subject of UNSUBSCRIBE.