NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
machlo1
Mar 07, 2013Follower
ReadyNas Duo v2 - openVPN + iptables problem
Hello
I have problem with openvpn configuration.
At this moment configuration of openvpn is correct, i can connect with my nas using vpn but... (here is problem) :i cannot forward port using iptables.
Is any solution to set correct iptables rules in RND2000 v2?
error codes:
Waiting on your response
Regards
I have problem with openvpn configuration.
At this moment configuration of openvpn is correct, i can connect with my nas using vpn but... (here is problem) :i cannot forward port using iptables.
Is any solution to set correct iptables rules in RND2000 v2?
error codes:
root@Server:~# iptables -A FORWARD -i eth0 -o tun0 -m state --state ESTABLISHED, RELATED -j ACCEPT
iptables: No chain/target/match by that name.
root@Server:~# iptables -A FORWARD -s 10.9.7.0/24 -o eth0 -j ACCEPT
root@Server:~# iptables -t nat -A POSTROUTING -s 10.9.7.0/24 -o eth0 -j MASQUERA DE
WARNING: All config files need .conf: /etc/modprobe.d/display_class, it will be ignored in a future release.
WARNING: All config files need .conf: /etc/modprobe.d/pnp-hotplug, it will be ig nored in a future release.
WARNING: All config files need .conf: /etc/modprobe.d/blacklist, it will be igno red in a future release.
FATAL: Module ip_tables not found.
iptables v1.4.8: can't initialize iptables table `nat': Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
Waiting on your response
Regards
3 Replies
Replies have been turned off for this discussion
- blummanAspirantHi,
Did you enable this on your NAS?net.ipv4.ip_forward = 1
- chirpaLuminaryMany iptables modules are not included. If you want nat,conntrack,etc, you'll have to compile them from the GPL sources.
- wouterdsAspirantHi,
I'm have compiled them but I'm failing to load them.
Any tips?/lib/modules/3.0.101.RN_ARM.1 # modprobe -l
nf_nat_snmp_basic.ko
nf_nat_proto_gre.ko
nf_nat.ko
ipt_MASQUERADE.ko
nf_defrag_ipv4.ko
kernel/fs/ufsd/ufsd.ko
kernel/drivers/scsi/thor/mv61xx.ko
kernel/drivers/media/video/videodev.ko
kernel/drivers/media/video/v4l2-int-device.ko
kernel/drivers/media/video/uvc/uvcvideo.ko
kernel/drivers/media/video/v4l2-common.ko
kernel/crypto/cryptodev.ko
nf_nat_irc.ko
nf_conntrack_ipv4.ko
ipt_REJECT.ko
ipt_ecn.ko
nf_nat_tftp.ko
ipt_ipv4options.ko
nf_nat_h323.ko
ipt_NETMAP.ko
ip_queue.ko
iptable_nat.ko
iptable_filter.ko
nf_nat_proto_udplite.ko
ipt_ECN.ko
ipt_ah.ko
nf_nat_pptp.ko
nf_nat_sip.ko
iptable_security.ko
ipt_REDIRECT.ko
nf_nat_amanda.ko
iptable_mangle.ko
nf_nat_ftp.ko
ip_tables.ko
------------------------------------------------------------
/lib/modules/3.0.101.RN_ARM.1 # modprobe ip_tables
------------------------------------------------------------
/lib/modules/3.0.101.RN_ARM.1 # modprobe iptable_nat
modprobe: can't load module nf_defrag_ipv4 (nf_defrag_ipv4.ko): Invalid argument
------------------------------------------------------------
/lib/modules/3.0.101.RN_ARM.1 # modprobe nf_defrag_ipv4
modprobe: can't load module nf_defrag_ipv4 (nf_defrag_ipv4.ko): Invalid argument
Related Content
NETGEAR Academy
Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!