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 12-16-2003, 11:15 AM   #1
priest_judas
Member
 
Registered: Dec 2003
Distribution: Slackware 9.0
Posts: 32

Rep: Reputation: 15
Unhappy home network - all set up!!! but there is still one problem ._.


hello everybody =P

some people here helped me with tips and howto's in the internet and I could almost set my home network completly... The gateway computer already have internet access and the two computers can talk to each other (this one and the other one)... this is my config

10.0.0.1 slacksquare (this is the gateway)
10.0.0.2 slackcircle (this is my other pC)

I can ping slacksquare and slackcircle with the names or the ips from both computers... they can talk to each other =P and slacksquare already have internet access... I'm surfing in it right now heheh

but I still can't make the other computer (slackcircle) connect to the internet

I read some howto's, but I have these erros when I try:


root@slacksquare:/# iptables -t nat -A POSTROUTING -o eth1 -j MASQUERAD
iptables v1.2.8: Couldn't load target `MASQUERAD':/usr/lib/iptables/libipt_MASQUERAD.so: cannot open shared object file: No such file or directory

Try `iptables -h' or 'iptables --help' for more information.
root@slacksquare:/#



and another howto told me to do something else, but I get this other error:


# Write this in /etc/rc.d/rc.local and then run ./rc.local

# 1) Flush the rule tables.
/sbin/ipchains -F input
/sbin/ipchains -F forward
/sbin/ipchains -F output
# 2) Set the MASQ timings and allow packets in for DHCP configuration.
/sbin/ipchains -M -S 7200 10 60
/sbin/ipchains -A input -j ACCEPT -i eth0 -s 0/0 68 -d 0/0 67 -p udp
# 3) Deny all forwarding packets except those from local network.
# Masquerage those.
/sbin/ipchains -P forward DENY
/sbin/ipchains -A forward -s 192.168.1.0/24 -j MASQ
# 4) Load forwarding modules for special services.
/sbin/modprobe ip_masq_ftp
/sbin/modprobe ip_masq_raudio


I write it and try, but then I get this error:


root@slacksquare:/etc/rc.d# ./rc.local
ipchains: Protocol not available
ipchains: Protocol not available
ipchains: Protocol not available
ipchains: setting MASQ timeouts failed: Protocol not available
ipchains: Protocol not available
ipchains: Protocol not available
ipchains: Protocol not available
modprobe: Can't locate module ip_masq_ftp
modprobe: Can't locate module ip_masq_raudio
root@slacksquare:/etc/rc.d# #



everything is working well in here... I'm just getting this final error... it might have a simple solution, but I really don't know what to do now... could someone help me, please? ˇ˛
 
Old 12-16-2003, 11:18 AM   #2
priest_judas
Member
 
Registered: Dec 2003
Distribution: Slackware 9.0
Posts: 32

Original Poster
Rep: Reputation: 15
oh sorry, I forgot to tell... the linux distribution in both computers is Slackware 9.1

and the IP fowarding in the gateway is working just fine... all configured out
 
Old 12-16-2003, 11:40 AM   #3
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 69
Why are you using ipchains? If your kernel is 2.4.x you should be using iptables.
 
Old 12-16-2003, 11:45 AM   #4
priest_judas
Member
 
Registered: Dec 2003
Distribution: Slackware 9.0
Posts: 32

Original Poster
Rep: Reputation: 15
I'm using ipchains cuz I'm a total newbie and didn't know I sould be using iptables hehehh =P

what do I have to do with iptables to make it gives internet access to the other computer?
 
Old 12-16-2003, 11:47 AM   #5
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 69
Well there are some how-tos linked in the resources post at the top of the Security board. Also I think www.netfilter.org has some iptables how-tos. What kernel version are you running, though? If you have an earlier kernel, you won't be able to use iptables.
 
Old 12-16-2003, 11:51 AM   #6
priest_judas
Member
 
Registered: Dec 2003
Distribution: Slackware 9.0
Posts: 32

Original Poster
Rep: Reputation: 15
I'm running the kernel version which comes with Slackware 9.1 by default... i guess it's 2.4.22

i don't know if my iptables is work fine, cuz I got that error message (the first post in this thread)... i don┤t know if that message is normal or not
 
Old 12-16-2003, 12:21 PM   #7
Dewar
Member
 
Registered: Sep 2003
Location: Washington State
Distribution: SuSE 8.0, SuSE 9.0, Slack 9.1
Posts: 90

Rep: Reputation: 15
Well, it looks to me like your first setup is the one you want to be using. Iptables ia newer version of Ipchains, so tables is what your slack is running. As far as I can tell, you have a very simple problem..... MASQUERADE ends with an E

>root@slacksquare:/# iptables -t nat -A POSTROUTING -o eth1 -j MASQUERAD
>iptables v1.2.8: Couldn't load target `MASQUERAD':/usr/lib/iptables/libipt_MASQUERAD.so: cannot open shared object file: No such file or directory

>Try `iptables -h' or 'iptables --help' for more information.
>root@slacksquare:/#

-Derek
 
Old 12-16-2003, 09:46 PM   #8
JordanH
Member
 
Registered: Oct 2003
Location: Toronto, Canada
Distribution: Ubuntu, FC3, RHEL 3-4 AS Retired: SuSE 9.1 Pro, RedHat 6-9, FC1-2
Posts: 360

Rep: Reputation: 30
Firstly, "MASQUERAD" isn't the target, it's "MASQUERADE" - small typo, no biggie. [edit: Ooops, I see someone above posted the same thing. d'oh]

Secondly, ignore the advice about using ipchains. That is sooooo "yesterday". ;-) Use IPTABLES instead because it is much more flexible (i.e. lets you use states for packets)

Lastly, check out this thread to get you going. It'll work with your Slack boxes. Make sure you run it at startup (that's rc.d directory in Slack, right?)
http://www.linuxquestions.org/questi...hreadid=121379

Last edited by JordanH; 12-16-2003 at 09:54 PM.
 
Old 12-17-2003, 02:32 PM   #9
priest_judas
Member
 
Registered: Dec 2003
Distribution: Slackware 9.0
Posts: 32

Original Poster
Rep: Reputation: 15
uahuahauhauhuaa thanx people, now my home network is working just fine =P
 
  


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
How to set up a wireless network at home trainee Linux - Wireless Networking 3 07-16-2005 07:50 AM
HowTo set up a home network purefan Linux - Networking 3 04-08-2005 11:39 AM
ok, how do i set up home network? grrr Niflheim Linux - Networking 6 04-01-2005 01:05 PM
Want to set up a home network Kaiyon Alatar Linux - Networking 4 09-22-2004 07:53 PM
Home Network set up and another related question webwolf70 Linux - Networking 4 07-15-2004 11:33 PM


All times are GMT -5. The time now is 11:17 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration