Netgear R7000 - HowTo get iptables-save work?

Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware
Author Message
anontux
DD-WRT Novice


Joined: 18 Nov 2015
Posts: 1

PostPosted: Wed Nov 18, 2015 13:25    Post subject: Netgear R7000 - HowTo get iptables-save work? Reply with quote
Hi Everyone,
I have a problem with one of my router (R700 DD-WRT v3.0-r28000M kongac).
On the router, I installed by entware opkg. So at the Finish I want to use fwbuilder, and I need iptables-save, which unfortunately does not work properly.

I tryed
Code:
ln -s /opt/usr/sbin/iptables /opt/bin/iptables-save


but my iptables is in
Code:
/usr/sbin/iptables
so i try:

Code:
ln -s /usr/sbin/iptables /opt/bin/iptables-save

or symlink to:
Code:

mkdir /jffs/bin
ln -s /usr/sbin/iptables /jffs/bin/iptables-save
iptables-save > /tmp/iptables.txt

and always get the same Error:
iptables multi-purpose version: unknown applet name iptables-save

At least I tried this:
(http://www.dd-wrt.com/wiki/index.php/Firewall_Builder)

Code:
nvram set rc_firewall=/jffs/firewall/firewall.fw
nvram commit
chmod 775 /jffs/firewall/firewall.fw


... but this doesn't work ... and i desided to ask here...

Don't know what the Problem is... the Partitions, or a Problem with optware instal? (But opkg works fine for me)

my partitions:

root@dd-wrt:/# mount -s
Code:
rootfs on / type rootfs (rw)
/dev/root on / type squashfs (ro,relatime)
proc on /proc type proc (rw,relatime)
sysfs on /sys type sysfs (rw,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
ramfs on /tmp type ramfs (rw,relatime)
none on /dev type tmpfs (rw,relatime,size=512K)
devpts on /dev/pts type devpts (rw,relatime,mode=600)
devpts on /proc/bus/usb type usbfs (rw,relatime)
/dev/sdb2 on /jffs type ext2 (rw,relatime,errors=continue)
/dev/mtdblock/5 on /jffs type jffs2 (rw,relatime)
/dev/sdd1 on /opt type ext2 (rw,relatime,errors=continue)
/dev/sdd2 on /jffs type ext2 (rw,relatime,errors=continue)
/dev/sdc1 on /tmp/mnt/sdc1 type ext2 (rw,relatime,errors=continue)
//192.168.1.197/cifs on /tmp/mnt/smbshare type cifs (rw,mand,relatime,vers=1.0[......])
/dev/sdd2 on /tmp/proftpd/users/ftpuser/www type ext2 (rw,relatime,errors=continue)
/dev/sdd2 on /tmp/proftpd/users/wwwuser/www type ext2 (rw,relatime,errors=continue)


root@dd-wrt:/# fdisk -l
Code:
Disk /dev/mtdblock0: 0 MB, 524288 bytes
255 heads, 63 sectors/track, 0 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/mtdblock0 doesn't contain a valid partition table

Disk /dev/mtdblock1: 1 MB, 1572864 bytes
255 heads, 63 sectors/track, 0 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/mtdblock1 doesn't contain a valid partition table

Disk /dev/mtdblock2: 33 MB, 33554432 bytes
255 heads, 63 sectors/track, 4 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/mtdblock2 doesn't contain a valid partition table

Disk /dev/mtdblock3: 31 MB, 31981568 bytes
255 heads, 63 sectors/track, 3 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/mtdblock3 doesn't contain a valid partition table

Disk /dev/mtdblock4: 0 MB, 262144 bytes
255 heads, 63 sectors/track, 0 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/mtdblock4 doesn't contain a valid partition table

Disk /dev/mtdblock5: 98 MB, 98304000 bytes
255 heads, 63 sectors/track, 11 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/mtdblock5 doesn't contain a valid partition table

Disk /dev/sdc: 63.2 GB, 63250104320 bytes
255 heads, 63 sectors/track, 7689 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks  Id System
/dev/sdc1               1        7649    61440561  83 Linux
/dev/sdc2            7650        7690      324608  82 Linux swap

Disk /dev/sdd: 4194 MB, 4194303488 bytes
130 heads, 62 sectors/track, 1016 cylinders
Units = cylinders of 8060 * 512 = 4126720 bytes

   Device Boot      Start         End      Blocks  Id System
/dev/sdd1               1         255     1024000  83 Linux
Partition 1 has different physical/logical beginnings (non-Linux?):
     phys=(0, 32, 33) logical=(0, 33, 3)
Partition 1 has different physical/logical endings:
     phys=(127, 155, 28) logical=(254, 45, 18)
Partition 1 does not end on cylinder boundary
/dev/sdd2             255         890     2560000  83 Linux
Partition 2 has different physical/logical beginnings (non-Linux?):
     phys=(127, 155, 29) logical=(254, 45, 19)
Partition 2 has different physical/logical endings:
     phys=(446, 80, 18) logical=(889, 75, 58)
Partition 2 does not end on cylinder boundary
/dev/sdd3             890        1017      509952  82 Linux swap
Partition 3 has different physical/logical beginnings (non-Linux?):
     phys=(446, 80, 19) logical=(889, 75, 59)
Partition 3 has different physical/logical endings:
     phys=(509, 204, 15) logical=(1016, 15, 62)
Partition 3 does not end on cylinder boundary

(last time reboot - not right unmounted... e2fsck need)


Have someone an Idee whats wrong or what the Problem is?

Thanks & bye
Sponsor
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum