Recent content by MON@H Rasta

  1. MON@H Rasta

    Tutorial Using TOR to unblock sites blocked by ISP on [Fork] Asuswrt-Merlin 374 LTS

    Decided to check once again and there are still those errors! Man how is that possible? I just have no idea! I just added logger into it to see what happens and now I'm totally confused!dig +short $line @localhost | grep -Eo '[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}' | awk...
  2. MON@H Rasta

    Tutorial Using TOR to unblock sites blocked by ISP on [Fork] Asuswrt-Merlin 374 LTS

    Well, IDK about your question, but I'm from Ukraine and we have a list of domains that ISPs must block because of government decision. In Russia there is even a federal executive agency called Roskomnadzor that forces ISPs to block sites. So for those who have similar problem or just want...
  3. MON@H Rasta

    Tutorial Using TOR to unblock sites blocked by ISP on [Fork] Asuswrt-Merlin 374 LTS

    I know this is old, but in case someone ever wonder, the solution was simple, no more spam in log :) #!/bin/sh until ADDRS=$(dig +short google.com @localhost) && [ -n "$ADDRS" ] > /dev/null 2>&1; do sleep 5; done while read line || [ -n "$line" ]; do [ -z "$line" ] && continue [...
  4. MON@H Rasta

    Tutorial Using TOR to unblock sites blocked by ISP on [Fork] Asuswrt-Merlin 374 LTS

    @ColinTaylor, fixed, thanks. @dave14305, you mean this one (github)? @john9527, the issue is that in original manual author is using ipset -exist add unblock but ipset v4.5 doesn't support -exists, so I need to add a check if IP exists before adding it. Something like this, I guess if [ ! -z...
  5. MON@H Rasta

    Tutorial Using TOR to unblock sites blocked by ISP on [Fork] Asuswrt-Merlin 374 LTS

    @ColinTaylor, got it, thanks. Modified tutorial according to this. Now only question of proper usage of IP_SET to avoid spam remains. I have modified first part of script to check if IP is in IP_SET before adding it, but not sure how to add this check to second part of the script if [ ! -z...
  6. MON@H Rasta

    Tutorial Using TOR to unblock sites blocked by ISP on [Fork] Asuswrt-Merlin 374 LTS

    @ColinTaylor, I need to add this to iptable on router startup:#!/bin/sh iptables -t nat -A PREROUTING -i br0 -p tcp -m set --set unblock dst -j REDIRECT --to-port 9141File name was chosen according to this. I don't really understand how it related to service restart_firewall And yes, post-mount...
  7. MON@H Rasta

    Tutorial Using TOR to unblock sites blocked by ISP on [Fork] Asuswrt-Merlin 374 LTS

    Install MicroSD into device. Format MicroSD as a single partition and install Entware on it using amtm. [/SPOILER] UPD: script updated, no more spam.
  8. MON@H Rasta

    Release [Fork] Asuswrt-Merlin 374 LTS release 45EC

    @john9527, thanks, but it's not the problem anymore. My first script is running without problems whilst it takes more then 2 minutes and now I know how to run other scripts. I will create separate thread for question how to deal with IP_SET better. Thanks to all you guys and sorry for off-topic.
  9. MON@H Rasta

    Release [Fork] Asuswrt-Merlin 374 LTS release 45EC

    ColinTaylor, they were always there. Just decided to ask, 'coz I posting here anyways :) I tested -q flag and that spam is still there. I think I need to test if the IP is in the IP_SET already before adding. I have modified the script like this, but not sure how to modify in that awk part. Can...
  10. MON@H Rasta

    Release [Fork] Asuswrt-Merlin 374 LTS release 45EC

    john9527, I don't run Diversion, only installed entware with amtm to have TOR onboard. Not using Diversion. dave14305, I guess not. -q maybe?
  11. MON@H Rasta

    Release [Fork] Asuswrt-Merlin 374 LTS release 45EC

    john9527, thanks for your warning. Updated my post with scripts. I have 264048 in my /tmp/mnt/microsd/dnsmasq/hosts.blocked and it seems to work just fine. ColinTaylor, thanks, got it. What about checking if the ip_set module is loaded, can you suggest me the way, please? Also, I have a bunch...
  12. MON@H Rasta

    Release [Fork] Asuswrt-Merlin 374 LTS release 45EC

    ColinTaylor, i need SD Card to be mounted when my scripts run, this is why I chose post-mount. If I will run them separately I will need to check if the SD Card is mounted and sleep until it is. Can you suggest the way to do it, also I wonder can you tell me the way to check if the ip_set module...
  13. MON@H Rasta

    Release [Fork] Asuswrt-Merlin 374 LTS release 45EC

    john9527, so how can I run scripts and avoid this timeout or how can I increase it?
  14. MON@H Rasta

    Release [Fork] Asuswrt-Merlin 374 LTS release 45EC

    I have MicroSD card installed and several sh scripts running after router restart. My main concern is creating a /jffs/scripts/post-mount file like this: #!/bin/sh logger "post-mount: start" . /jffs/addons/diversion/mount-entware.div # Added by amtm # Run script now sleep 5...
  15. MON@H Rasta

    [Fork] Asuswrt-Merlin 374.43 LTS releases (Archive)

    Sorry, I was trying to use search but... Let's say just I had bad luck ))) Thanks for your replies. Then I will not do that.
Back
Top