Results 1 to 3 of 3

Thread: Change default firewall ruleset ?

  1. #1
    Join Date
    Jan 2005
    Location
    Vienna
    Posts
    41

    Question Change default firewall ruleset ?

    My Prob:
    WAN-Cable ist unplugged, I create my own iptables ruleset
    -> drop everything on WAN (eth1)

    I plug in the WAN cable -> a script is started installing the default rules made by asus(?)
    -> my WAN gets opened (policy to ACCEPT), although I changed FW-Rules to drop->and i can receive my IP and other stuff (I want to block)

    how can I disable that script or create my own ruleset to getting loaded
    (no post-firewall but instead firewall!)

    in the gateway/rc dir there is a firewall_ex.c containing some data...but I dont know how to edit it

    WL-500g, FW 1.9.2.7-3b

  2. #2
    Join Date
    Dec 2003
    Location
    Russian Federation
    Posts
    8,356
    Use post-firewall, there is no other way. In the post-firewall script you could completely flush exsisting rules and then add your own.

  3. #3
    Join Date
    Jan 2005
    Location
    Vienna
    Posts
    41

    "hardcoded" in firewall_ex.c?

    It seems the default rules are somehow hardcoded to the file
    rc/firewall_ex.c

    If it's the case: would it be possible to add somewhere something

    i.e.: if there is an existing rc/myfirewall.sh file containing my prefered ruleset, it will be compiled instead of the hardcoded one?

Similar Threads

  1. Clearing nvram = default settings?
    By wfleck in forum WL-500g Q&A
    Replies: 10
    Last Post: 28-06-2011, 16:06
  2. default route on a br0 interface? how?
    By xtraya in forum WL-500g Q&A
    Replies: 4
    Last Post: 07-07-2005, 09:11
  3. Replies: 3
    Last Post: 08-06-2005, 15:19
  4. Replies: 2
    Last Post: 09-05-2005, 09:26

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •