Community discussions

MikroTik App
 
nikolas22t
just joined
Topic Author
Posts: 18
Joined: Thu Jan 12, 2012 1:03 pm

One Ip address to pass through web proxy

Sun Jan 15, 2012 12:12 pm

Is there any way to pass any requests only for 1 ip address through proxy?
Any requests from any ip in my LAN network for IP 91.154.xxx.xxx to pass through proxy 92.100.xxx.xxx ...
Last edited by nikolas22t on Tue Jan 31, 2012 4:16 pm, edited 1 time in total.
 
jtroybailey
Member Candidate
Member Candidate
Posts: 176
Joined: Thu Oct 07, 2010 10:24 am
Location: Brisbane, Australia

Re: 1 Website (1 ip better) through proxy

Sun Jan 15, 2012 12:41 pm

/ip firewall nat

add action=dst-nat chain=dstnat disabled=no dst-address=91.154.xxx.xxx dst-port=81 in-interface=lan1 protocol=tcp to-addresses=92.100.xxx.xxx to-ports=8080
That would direct all traffic coming into lan1 going to 91.154.xxx.xxx to 92.100.xxx.xxx port 8080

Is that what your looking for?
 
nikolas22t
just joined
Topic Author
Posts: 18
Joined: Thu Jan 12, 2012 1:03 pm

Re: 1 Website (1 ip better) through proxy

Sun Jan 15, 2012 12:44 pm

no , 92.100.xxx.xxx is a proxy server running on port 808
 
nikolas22t
just joined
Topic Author
Posts: 18
Joined: Thu Jan 12, 2012 1:03 pm

Re: 1 Website (1 ip better) through proxy

Sun Jan 15, 2012 4:30 pm

i want all traffic from my local lan 192.168.15.0/24 to the ip 91.154.xxx.xxx (ports 80 , 8080 , 443 , 22 , 21 2223 e.t.c) to pass through the proxy server 92.100.xxx.xxx
 
jtroybailey
Member Candidate
Member Candidate
Posts: 176
Joined: Thu Oct 07, 2010 10:24 am
Location: Brisbane, Australia

Re: 1 Website (1 ip better) through proxy

Mon Jan 16, 2012 9:43 am

The code i posted pretty much does that, if you want to define by ip address instead of a physical port, use:
src-address=192.168.15.0/24
instead of
in-interface=lan1
and so that you capture all ports just remove:
dst-port=81
and to change the port that it is redirecting to just change:
to-ports=8080