Page 1 of 1
Redirect URL to local IP
Posted: Sat Aug 02, 2014 8:36 pm
by Ser Bronn
Under the SYSTEM ruleset:
Code: Select all
Site 192.168.1.2
Accept GET from 192.168.1.2 http://subdomain.site.com/
# Prevent Internet sites from requesting LAN resources.
Site LOCAL
Accept from LOCAL
Deny
Under the USER ruleset:
blank
It works, but is this the proper way to do it?
I couldn't find any real guides on syntax, what does what, what goes before or after, and the difference between system and user.
Also, is there anything wrong with using:
Site 192.168.1.*
Accept GET from 192.168.1.*
http://subdomain.site.com/
?
Re: Redirect URL to local IP
Posted: Sat Aug 02, 2014 9:19 pm
by barbaz
Ser Bronn wrote:is this the proper way to do it?
Sure. Only thing I would suggest is that you qualify that IP address with a protocol, e.g. http://192.168.1.2 instead of just 192.168.1.2.
Ser Bronn wrote:I couldn't find any real guides on syntax, what does what,
http://noscript.net/abe/abe_rules.pdf
(You did an amazingly good job making that rule exception for someone who doesn't know anything about ABE

)
Ser Bronn wrote:what goes before or after, and the difference between system and user.
Rulesets are processed from top to bottom, and for each ruleset, the only action ABE will take on any given request is whatever it's specified to do to the *first* matching "Site". SYSTEM and USER are two different rulesets, so rules in one don't have any effect on rules in another.
Ser Bronn wrote:Also, is there anything wrong with using:
Site 192.168.1.*
Accept GET from 192.168.1.* http://subdomain.site.com/
?
Try it. (I think that would work, but again, you should specify a protocol for the IP address if possible.)
Re: Redirect URL to local IP
Posted: Sat Aug 02, 2014 11:24 pm
by Ser Bronn
Thanks for the reply.
barbaz wrote:
Sure. Only thing I would suggest is that you qualify that IP address with a protocol, e.g.
http://192.168.1.2 instead of just 192.168.1.2.
Should I add the ports as well?
Re: Redirect URL to local IP
Posted: Sun Aug 03, 2014 12:20 am
by barbaz
That would be a good idea. If you do that, I would suggest to also add the "/" . So you would end up with something like