Some bugs after installing version 14

Re: Some bugs after installing version 14

Postby peetn » Sun May 19, 2013 7:00 pm

Yes, spd8020 indeed.

Thanks for the files! I found out I have to load them with insmod. Is that correct?
I didn't get it working with modprobe.

Loading ip_tables.ko and iptable_filter.ko was enough.
iptables -L -n works. So far so good.

However, inserting an entry like iptables -A POSTROUTING -t nat -o eth0 -j MASQUERADE returns this error:
Code: Select all
iptables v1.4.12.2: can't initialize iptables table `nat': Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.

I tried to load iptable_nat.ko but got this error:
Code: Select all
insmod: can't insert './iptable_nat.ko': unknown symbol in module or invalid parameter

From dmesg:
Code: Select all
iptable_nat: Unknown symbol nf_nat_packet (err 0)
iptable_nat: Unknown symbol nf_nat_setup_info (err 0)
iptable_nat: Unknown symbol nf_nat_icmp_reply_translation (err 0)

Then I tried to load all modules.
Not all succeeded. These failed with the same type of error:
    ipt_MASQUERADE.ko
    ipt_NETMAP.ko
    ipt_REDIRECT.ko
    iptable_nat.ko

From dmesg:
Code: Select all
ipt_MASQUERADE: Unknown symbol nf_nat_setup_info (err 0)
ipt_NETMAP: Unknown symbol nf_nat_setup_info (err 0)
ipt_REDIRECT: Unknown symbol nf_nat_setup_info (err 0)

So I guess there is a file missing?
peetn
Donator VIP
Donator VIP
 
Posts: 24
Joined: Wed Feb 06, 2013 5:26 pm

Re: Some bugs after installing version 14

Postby fvdw » Sun May 19, 2013 7:21 pm

loading modules often require a specific order

You should put them in the folder /lib/modules/2.6.39.4

and make them executable using chmod command
chmod 755 name of module

After that modprobe should work, before uising modprobe
use the command
Code: Select all
depmod
This will update the database in the modules folder and now when using modprobe all dependent modules should be loaded as well
fvdw
Site Admin - expert
 
Posts: 13245
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: Some bugs after installing version 14

Postby peetn » Sun May 19, 2013 8:42 pm

Thanks again. You are very helpful!
I had tried that route before but hadn't executed "depmod".
That seems to be the key :thumbup
Now modprobe ip_tables works rightaway! No more error messages.

However, I get the same result when trying to add a rule.
Code: Select all
iptables v1.4.12.2: can't initialize iptables table `nat': Table does not exist (do you need to insmod?)

If I try to load it 'extra' with modprobe iptable_nat, I get this:
Code: Select all
modprobe: module 'nf_nat' not found
modprobe: 'iptable_nat.ko': unknown symbol in module or invalid parameter

dmesg gives me the same output as earlier.
peetn
Donator VIP
Donator VIP
 
Posts: 24
Joined: Wed Feb 06, 2013 5:26 pm

Re: Some bugs after installing version 14

Postby fvdw » Sun May 19, 2013 8:46 pm

seems you miss attached module
You do not have the required permissions to view the files attached to this post.
fvdw
Site Admin - expert
 
Posts: 13245
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: Some bugs after installing version 14

Postby peetn » Mon May 20, 2013 6:41 am

Yes! That's it. It's running now! :applause
And indeed, I have internet access now through VPN.
Thanks a lot.

So to summarize, these were the remaining steps:
- copy the ko files from both zip-files provided by fvdw to /lib/modules/2.6.39.4
- make them 755
Code: Select all
depmod
modprobe ip_tables
iptables -A POSTROUTING -t nat -o eth0 -j MASQUERADE
iptables -A POSTROUTING -t nat -o ppp+ -j MASQUERADE
And then start openvpn. Perfect!
peetn
Donator VIP
Donator VIP
 
Posts: 24
Joined: Wed Feb 06, 2013 5:26 pm

Re: Some bugs after installing version 14

Postby Jocko » Mon May 20, 2013 7:10 am

well done peetn :applause

Note
Next, I updated /etc/ppp/options.pptpd as described in the link.


For openVPN is useless, work only the pptp server
Jocko
Site Admin - expert
 
Posts: 11367
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: Some bugs after installing version 14

Postby peetn » Mon May 20, 2013 11:30 am

Thanks.
Probably the same for this one containing PPP:
Code: Select all
iptables -A POSTROUTING -t nat -o ppp+ -j MASQUERADE
Seems to work without that line too.
peetn
Donator VIP
Donator VIP
 
Posts: 24
Joined: Wed Feb 06, 2013 5:26 pm

Re: Some bugs after installing version 14

Postby Jocko » Mon May 20, 2013 11:36 am

Yes, of course etho is used by openVPN and ppp0 by pptp
Jocko
Site Admin - expert
 
Posts: 11367
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: Some bugs after installing version 14

Postby spidercat » Fri Dec 06, 2013 5:29 pm

Hello,

i need iptables NAT package that in FW15 is not included, i see that attached file in this thread is for Philips SPD8020 infact if i try to load into my NS2 i receive : "insmod: can't insert 'iptable_nat.ko': invalid module format".
Can you please send me the same modules compiled for NS2 ?
Thanks a lot
Regards
spidercat
 
Posts: 15
Joined: Tue Jun 19, 2012 3:05 pm

Re: Some bugs after installing version 14

Postby fvdw » Fri Dec 06, 2013 8:43 pm

yes that will not work, the kernel on spd8020 is different then on nwsp2, kernel modules are kernel dependent

In nwsp2 kernel iptables support is already included and there is no need to load a kernel module
fvdw
Site Admin - expert
 
Posts: 13245
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

PreviousNext

Return to Philips SPD8020

Who is online

Users browsing this forum: No registered users and 7 guests