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? óò |
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 |
Why are you using ipchains? If your kernel is 2.4.x you should be using iptables.
|
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? |
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.
|
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 |
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 |
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 |
uahuahauhauhuaa thanx people, now my home network is working just fine =P
|
All times are GMT -5. The time now is 11:58 PM. |