Community discussions

MikroTik App
 
User avatar
Ghost
just joined
Topic Author
Posts: 7
Joined: Sun Nov 14, 2010 11:12 pm
Location: Moscow, Russia
Contact:

Mikrotik PPPoE + web proxy

Sun Nov 14, 2010 11:26 pm

Hi!
There Mikrotik 5.0rc3, set up PPPoE server, PPPoE client connects to it for internet access. Everything works. I want to do that all requests from clients to redirect port 80 to 8080 PPPoE server (my MT). If i do not use pppoe, and use NAT - it works fine, if PPPoE - not working :(
Thank for you help, and sorry for my english :)
My rules for nat and redirect:
1   ;;; nat to internet
     chain=srcnat action=masquerade protocol=tcp src-address-list=local out-interface=pptp-out1 dst-port=!80 

 2   ;;; nat to internet for ppp
     chain=srcnat action=masquerade src-address-list=ppp out-interface=pptp-out1 

 3   ;;; redirect  for web to web-proxy on router for PPP
     chain=dstnat action=redirect to-ports=8080 protocol=tcp dst-address=!172.16.254.254 dst-port=80 
172.16.254.254 - ip address MT
PPPoE Clients have addresses in pool 10.10.254.0/24
NAT Clients have addresses in pool 172.16.254.0/24
ppt-out1 - interface to internet.

Who is online

Users browsing this forum: tangent, Wolvyreen and 26 guests