Hi…
I am trying to redirect http (port 80) to another address if ip that the traffic is coming from is not in the mangle list…
How can I do this?
I am using firewall rules in way that, if user is in mangle, he has access to internet, and he is being natted, and if his ip address is not in mangle list, he cannot get to the internet. But I want all users that does not have access to internet to be redirected to one page.
Thank you…
p.s. hotspot is not a good solution here…i need redirecting, but I have hotspot and web proxy package installed…
hmmm… what is ‘mangle list’? =)
/ip firewall mangle
omg… what do you do in mangle? post your rules here
mangle:
Flags: X - disabled, I - invalid, D - dynamic
1 ;;; user xxxxx
chain=prerouting src-address=xxx.x.xx.xx action=mark-connection new-connection-mark=sve_osim_p2p passthrough=no
2 ;;; user xxxyyy
chain=prerouting src-address=yyy.yyy.yy.yy action=mark-connection new-connection-mark=xstandard passthrough=no
…
and so on…
filter:
96 ;;; sve osim p2p
chain=input connection-mark=sve_osim_p2p action=accept
97 ;;; xstandard
chain=input connection-mark=xstandard action=accept
104 chain=forward in-interface=xxxxx action=drop
src-nat
2 chain=srcnat out-interface=ether1 src-address=zzz.zzz.zz.zz action=masquerade
104 chain=forward in-interface=xxxxx action=drop
well, this rule drops all user’s connections to internet =) or what did you mean by ‘xxxxx’?