dear all
i have external squid and hotspot server i want to redirect all HTTP to the squid box i use this rule to this
chain=dstnat action=dst-nat to-addresses= x.x.x.x to-ports=3128
dst-port=80 protocol=tcp
this rule work fine if i trun the hotspot server off or move this rule to the top of all nat rules but if i move the rule to the top then the user cant be login after that .
i think the problem with the dyanamic nat rules and this is all the nat config
Flags: X - disabled, I - invalid, D - dynamic
0 X ;;; place hotspot rules here
chain=unused-hs-chain action=passthrough
1 chain=dstnat action=dst-nat to-addresses=x.x.x.x to-ports=3128
dst-port=80 protocol=tcp
2 ;;; masquerade hotspot network
chain=srcnat action=masquerade src-address=192.168.0.0/24
3 ;;; masquerade hotspot network
chain=srcnat action=masquerade src-address=10.10.10.0/24
4 ;;; masquerade hotspot network
chain=srcnat action=masquerade src-address=10.100.100.0/24
where x.x.x.x is my real IP
plz any one can help to do this this is very urgnt