1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Allowing access to only centain web sites

Discussion in 'Tomato Firmware' started by walksoft, Apr 17, 2008.

  1. walksoft

    walksoft Guest

    Allowing access to specific web sites

    Ok, I've went round and round with this. I've got Tomato 1.17 on a WRT54GL and I want to allow certain IP addresses on my network access to UPS and FEDEX websites only. I went through a lot of iptables documentation and came up with a script that I thought would work(see below). I tried it in the firewall section, then the init section and then telneted in and tried using the iptables command manually to no avail. I'm using "-m web --hore " ups fedex" as my match string. There is absolutely no doc on the extended match (-m web) anywhere so I had to look at the examples and do my best. I'm hoping that a Linksys guru can see my error. My script:

    /usr/sbin/iptables -A ACCEPT -p tcp -m iprange –-source-range -m web --hore " ups fedex" -j ACCEPT

    I was also wondering if I need to reboot every time I enter a new iptables command and do I need to turn on access restrictions or add modify this script to tell the firmware what to do when they try other sites.

    Tks, John

Share This Page