Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
12-16-2003, 11:15 AM
|
#1
|
|
Member
Registered: Dec 2003
Distribution: Slackware 9.0
Posts: 32
Rep:
|
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? óò
|
|
|
|
12-16-2003, 11:18 AM
|
#2
|
|
Member
Registered: Dec 2003
Distribution: Slackware 9.0
Posts: 32
Original Poster
Rep:
|
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
|
|
|
|
12-16-2003, 11:40 AM
|
#3
|
|
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:
|
Why are you using ipchains? If your kernel is 2.4.x you should be using iptables.
|
|
|
|
12-16-2003, 11:45 AM
|
#4
|
|
Member
Registered: Dec 2003
Distribution: Slackware 9.0
Posts: 32
Original Poster
Rep:
|
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?
|
|
|
|
12-16-2003, 11:47 AM
|
#5
|
|
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:
|
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.
|
|
|
|
12-16-2003, 11:51 AM
|
#6
|
|
Member
Registered: Dec 2003
Distribution: Slackware 9.0
Posts: 32
Original Poster
Rep:
|
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
|
|
|
|
12-16-2003, 12:21 PM
|
#7
|
|
Member
Registered: Sep 2003
Location: Washington State
Distribution: SuSE 8.0, SuSE 9.0, Slack 9.1
Posts: 90
Rep:
|
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
|
|
|
|
12-16-2003, 09:46 PM
|
#8
|
|
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:
|
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.
|
|
|
|
12-17-2003, 02:32 PM
|
#9
|
|
Member
Registered: Dec 2003
Distribution: Slackware 9.0
Posts: 32
Original Poster
Rep:
|
uahuahauhauhuaa thanx people, now my home network is working just fine =P
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 01:42 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|