Community discussions

MikroTik App
 
malcolmboston
just joined
Topic Author
Posts: 15
Joined: Fri Sep 02, 2016 3:02 pm

Forwarding all TCP traffic (HTTP) to a specific ip address and port

Thu May 11, 2017 12:54 pm

Hi,

I have been trying to get a mikrotik 951 to successfully forward all non-https TCP traffic to a specifc ip address and port but have had no success.

I have looked into NAT firewall rules and Web proxies but i cannot get this working.

Can anyone point me in the right direction?

Kind regards, Mal
 
User avatar
cdiedrich
Forum Veteran
Forum Veteran
Posts: 997
Joined: Thu Feb 13, 2014 2:03 pm
Location: Basel, Switzerland // Bremen, Germany
Contact:

Re: Forwarding all TCP traffic (HTTP) to a specific ip address and port

Thu May 11, 2017 1:55 pm

/ip firewall nat
add chain=dstnat action=dst-nat src-address=192.168.88.0/24 dst-address=0.0.0.0/0 protocol=tcp dst-port=80 to-addresses=192.168.88.200 to-ports=3128
Assuming your subnet is 192.168.88.0/24 and your proxy is on 192.168.88.200, listening on port 3128.
-Chris