Setting up a Router (I tthink!)
Hi! I need to do the following: Internet - ADSL (10.0.0.138) - LAN Card (10.0.0.100) - Linux Box (= router?)- LAN Card (192.168.1.100) - Hub - Win 2K, Win98, and Linux clients with fixed addresses like 192.168.1.101 etc. I would like the clients having access to the Internet via the Linux box. (DHCP seems a bit heavy for 2 clients and the occaisional guest.) Can anyone supply an RTFM or a tutorial reference or advice in sentences of no more than 10 words, and with words of no more than three syllables how to go about this. I specifically refer to the technical part of getting the clients to access the Internet. The firewall issue can come next ... A live example would be best. As things stand, the Linux box runs under SuSE 9.1 and works flawlessly with the Bezeq Alcatel ST 510 (LAN connection). The local network is largely a SAMBA workgroup, where everyone sees what it should quiet happily i.e. client and server see each other's shares as needed. Thanks, Daniel = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: Setting up a Router (I tthink!)
Omer Zak wrote: On Sun, 2 Jan 2005, Daniel Feiglin wrote: Hi! I need to do the following: Internet - ADSL (10.0.0.138) - LAN Card (10.0.0.100) - Linux Box (= router?)- LAN Card (192.168.1.100) - Hub - Win 2K, Win98, and Linux clients with fixed addresses like 192.168.1.101 etc. I would like the clients having access to the Internet via the Linux box. (DHCP seems a bit heavy for 2 clients and the occaisional guest.) Can anyone supply an RTFM or a tutorial reference or advice in sentences of no more than 10 words, and with words ofno more than three syllables how to go about this. I specifically refer to the technical part of getting the clients to access the Internet. The firewall issue can come next ... A live example would be best. If you prefer not to use DHCP, you need to manually configure, for each Ethernet interface in each of the PCs connected to the network, the following: 1. Default route - the Linux box (192.168.0.100/255.255.255.0 or another netmask). 2. Name server - use your ISP's name server unless you set up one in your network. How exactly to configure - depends upon the OS running on the PC; and in the case of Linux - depends upon the desktop/distribution. --- Omer Daniel will probably also want to check his ip_forward setting: To check, type as root: [EMAIL PROTECTED] root]# /sbin/sysctl -a | grep ip_forward net.ipv4.ip_forward = 0 That setting would be wrong for him. He'll need to edit his /etc/sysctl.conf file changing the ip_forward setting to: net.ipv4.ip_forward = 1 then run: [EMAIL PROTECTED] root]# /sbin/sysctl -p -- Micha = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: Setting up a Router (I tthink!)
Daniel Feiglin wrote: Hi! I need to do the following: Internet - ADSL (10.0.0.138) - LAN Card (10.0.0.100) - Linux Box (= router?)- LAN Card (192.168.1.100) - Hub - Win 2K, Win98, and Linux clients with fixed addresses like 192.168.1.101 etc. I would like the clients having access to the Internet via the Linux box. (DHCP seems a bit heavy for 2 clients and the occaisional guest.) DHCP is easy enough, but fixing the IP addresses is not much harder, just a bit more menial labour. You said also that all machines are working in the LAN and know each other so you are ready to go with static IPs already. Steps to follow: 1. Set the IPs of all interfaces of the machines (you already have that) 2. echo 1 /proc/sys/net/ipv4/ip_forward (you want this on boot on the router) 3. Setup masquerade on the Linux server so the clients can access the net. Tutorial is at http://netfilter.org/documentation/HOWTO//NAT-HOWTO-4.html#ss4.1 4. Check that everything works for you. 5. ... 6. Profit! You may also want to setup a firewall, plenty of firewall scripts abound, just search freshmeat. Unless you really intend to learn firewall setup you are better off (and more secure) using an existing, known to work script. Baruch = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Perl Beginners track at YAPC::Israel::2005
Hi all, The Perl Beginners (or Learning Perl as I once called it) track at the upcoming Israeli Perl Conference[1] looks to be shaping up - we already have lecturers lined up for most of the day, willing to explain the basics to an eager audience. Currently we have: 1. Data types 2. Regular Expressions 3. Sorting (More to come...) The only question that now remains - If We Build It, Will They Come? Please let me know, on or off the list, if you plan to come to hear the Perl Beginners track. My email is: [EMAIL PROTECTED] [1] http://www.perl.org.il/YAPC/2005/ Sincerely, -- Offer Kaye, On behalf of the YAPC organizers = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]