You should also be able to see it with WinSCP.įound the file, but there seems to be an error since no filter rules are used by firewall builder after loading the /tmp/.iptĤ: Parser error: line 4:72: expecting NEWLINE, found '/' ipt file is a hidden file so you probably won't see it using Putty ls command, use ls -a to show the hidden files as well. On my F5D8235-4 v2 with dd-wrt, it is saved as /tmp/.ipt but on my other router WNR3500L v2 using Tomato, it is saved as /etc/iptable Some other routers have such webgui functionality and I was looking forward to use this with dd-wrt as well.ĭon't give up! Keep searching the directories as the iptables has to be saved somewhere in the router. Is noone using dd-wrt to apply some rules to the local network or is it so easy and I don't know. Unfortunately there is no such file in the mentioned directory. Use WinSCP to download the /tmp/.ipt file and rename it to iptables.txt if you like. ipt under the directory /tmp on my F5D8235-4 v2 and its format is similar to the one created by iptables-save. Got enough space on the usb stick and mounted it as /jffs Is there another way to configure ddwrt with some firewall rules?Įxcept editing iptables manually of course. Am not able to test it anyway, b/c of the problems above. Now I look for a way to get it working or get the rules to firewall builder in another way.īy the way, do you aware that fwbuilder only support kernel 2.4 & 2.6 for Linux iptables? Check this: ĭid not see that concerning the kernel build. Iptables-save should do exactly that, but is not working. I mounted the usb drive to /jffs and it is working allright, since I can upload the firewall.fw file to the box.īut I would like to get all the rules to the firewall builder. Use an USB drive and make a jffs directory and bind it to jffs. Looks like jffs2 is not working on WDR4300! See this thread: Ln -s /usr/sbin/iptables /jffs/bin/iptables-save However, V24 of DD-WRT has been modified to support iptables - although the iptables-save command is not present - however you can get it to work There is a how to on the dd-wrt guide for Firewall Builder. (Generated rule may not generate equivalent iptables command when compiled)ġ20: Warning: Line 40: Added rule to reproduce default policy ACCEPT in mangle/FORWARDġ20: Warning: Line 39: Can not reproduce default action in table 'mangle' chain 'INPUT'.Is there a way to retrieve the file for firewall builder? Only tables "filter", "mangle" and "nat" are supported.ģ2: Error: Error: Rule can not be imported correctly because original configuration uses unrecognized netfilter table "raw".ģ3: Error: Rule can not be imported correctly because original configuration uses unrecognized netfilter table "raw".ģ3: Error: Error: Rule can not be imported correctly because original configuration uses unrecognized netfilter table "raw".Ĥ3: New ruleset: mangle / zone_wan_MSSFIXĤ4: Error: Fwbuilder can not reproduce iptables rule in the table 'mangle', chain FORWARDĤ4: Error: Error: Fwbuilder can not reproduce iptables rule in the table 'mangle', chain FORWARDĤ5: Warning: Using automatic rule controlled by option Clamp MSS to MTUĥ5: New ruleset: filter / forwarding_ruleĦ6: New ruleset: filter / zone_lan_ACCEPTĦ8: New ruleset: filter / zone_lan_REJECTĦ9: New ruleset: filter / zone_lan_forwardħ1: New ruleset: filter / zone_wan_ACCEPTħ3: New ruleset: filter / zone_wan_REJECTħ4: New ruleset: filter / zone_wan_forwardħ5: Parser error: line 75:33: unexpected token: RELATEDħ5: Error: Error: Unknown module: conntrackħ5: Error: Error: Unknown option: -ctstateĨ0: Parser error: line 80:35: unexpected token: RELATEDĨ0: Error: Error: Unknown module: conntrackĨ0: Error: Error: Unknown option: -ctstateĨ4: Parser error: line 84:34: unexpected token: RELATEDĨ4: Error: Error: Unknown module: conntrackĨ4: Error: Error: Unknown option: -ctstateġ20: Warning: Line 50: Added rule to reproduce default policy ACCEPT in filter/INPUTġ20: Warning: Line 52: Added rule to reproduce default policy ACCEPT in filter/OUTPUTġ20: Warning: Line 40: Can not reproduce default action in table 'mangle' chain 'FORWARD'. Only tables "filter", "mangle" and "nat" are supported.ģ2: Error: Rule can not be imported correctly because original configuration uses unrecognized netfilter table "raw".ģ2: Error: Error: Unrecognized netfilter table "raw". When importing attached iptables-save output file, fwbuilder reports the following instead of the desired outcome which would be a an import without error messages and the same meaning as the original firewall rules:ġ2: New ruleset: nat / zone_lan_preroutingġ4: New ruleset: nat / zone_wan_preroutingĢ6: Error: Unrecognized netfilter table "raw".
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |