cache not working with pppoe?

i was using hotspot and everything was ok except for hacking issues so i changed to pppoe but now the cache is not working , i made the nat rules and it was working perfectly with hotspot but now with pppoe not working , i think its related to that pppoe assign each user a dynamic interface…so what can i do to regain cache function??

totti1984,

you must be using source or destination interface perviously in your hotspot for natrule..now instead of specifying interfaces, create an address_list of your ip’s that you want to redirect to proxy and specify it in the advanced settings of your nat rule…it will work..


regards,
Asad

Hummm

Asad could you please tell me exactly what to do as im a beginner in mikrotik OS

ok

u set this rule

add chain=srcnat src-address=192.168.0.0/24 action=masquerade comment=“masquerade hotspot network” disabled=no

add chain=dstnat dst-address=!192.168.0.1 protocol=tcp dst-port=80 action=redirect to-ports=8090 comment=“” disabled=no


192.168.0.1 use ip address change to ip address fo u

and port 8090 chang to port u

:bulb: ali4net :bulb:

thanx for help i tried to figure something yesterday so i add 3 rules one is add src to list and dst and src and the cache worked quite good until today when every thing stopped (no browsing no messenger) until i removed my rules and put ali4net rules and messenger worked but no browsing then i removed the “!” from the dst address and browsing worked but the cache still not working !!! plz tell me what to do as i’m so confused, my mikrotik version is 2.9.27

tooti1984,

if you are using Winbox then goto ip->firewall
select address list tab
click + sign, give a name(any) and add an address like 192.168.0.0/24, this address is the ip range of clients of which you want to redirect traffic to proxy.

then in your NAT rule, do not specify any in or out interfaces.. go to advanced tab and in the src address list select the name of address list you just created.

regards,
Asad

hii still my nat rule redirecting nothing i’m going to be crazy because every thing should work fine!!

those are my exact settings:

0 chain=dstnat dst-address=10.1.1.1 protocol=tcp dst-port=80
src-address-list=all ips action=redirect to-ports=8080

1 chain=srcnat src-address=10.1.1.0/24 action=masquerade

2 chain=dstnat dst-address=10.0.0.1 protocol=tcp dst-port=80 action=redirect
to-ports=8080

3 chain=srcnat src-address=10.0.0.0/24 action=masquerade

i have 4 rules because i work on 2 interfaces
hope you can help me figure this out

0 chain=dstnat dst-address=10.1.1.1 protocol=tcp dst-port=80
src-address-list=all ips action=redirect to-ports=8080

1 chain=srcnat src-address=10.1.1.0/24 action=masquerade

2 chain=dstnat dst-address=10.0.0.1 protocol=tcp dst-port=80 action=redirect
to-ports=8080

3 chain=srcnat src-address=10.0.0.0/24 action=masquerade

you should not mention any dst-address in the nat rule, otherwise it will nat of only packets that are destined for 10.0.0.1 or 10.1.1.1.

regards,
Asad

if you are new to MT is suggest you to read manual, seriously,

here is the link:
http://www.mikrotik.com/testdocs/ros/2.9/

problem solved :slight_smile: thanx alot to all of you i hope i can some day help you if you will need…