Advertisement
albspirit86

Untitled

Sep 17th, 2014
329
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. for port 80
  2. eth1=LAN Interface
  3. 192.168.2.1 = IP of Squid Proxy Server LAN interface (eth1)
  4. 192.168.100.0/24 = Network for LAN users
  5. 192.168.2.254 = IP Mikrotik Proxy Interface IP (Squid)
  6.  
  7. /interface ethernet
  8. set 0 name=LAN
  9. set 1 name=SQUID
  10. set 2 name=WAN
  11.  
  12. /ip address
  13. add address=192.168.1.1/24 interface=WAN network=192.168.0.0
  14. add address=192.168.2.254/24 interface=SQUID network=192.168.50.0
  15. add address=192.168.100.254/24 interface=LAN network=192.168.100.0
  16.  
  17.  
  18. /ip firewall mangle
  19. add action=mark-routing chain=prerouting dst-port=80 new-routing-mark=http protocol=tcp
  20. /ip firewall nat
  21. add chain=srcnat dst-port=80 protocol=tcp
  22.  
  23. /ip route
  24. add distance=1 gateway=192.168.2.1 routing-mark=http
  25.  
  26.  
  27. + port 443 "https"
  28.  
  29. /ip firewall mangle
  30. add action=mark-routing chain=prerouting dst-port=443 new-routing-mark=https protocol=tcp
  31. /ip firewall nat
  32. add chain=srcnat dst-port=443 protocol=tcp
  33. /ip route
  34. add distance=1 gateway=192.168.2.1 routing-mark=https
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement