Community discussions

MikroTik App
 
Clauu
Member Candidate
Member Candidate
Topic Author
Posts: 217
Joined: Fri Mar 21, 2014 8:27 pm
Location: RO

Redirect external trafic port

Thu Feb 12, 2015 5:54 pm

Hi, ok so i have 2 pppoe connections, 1 with dynamic ip and another one with a static ip, on the dynamic one the 25 port is blocked by isp,
192.168.10.0/24 is translated to the dynamic ip and 192.168.20.0/24 to the static one, how can i redirect all requests to port 25 from my dynamic ip to the static one since here the 25 port is not blocked?
 
Feklar
Forum Guru
Forum Guru
Posts: 1724
Joined: Tue Dec 01, 2009 11:46 pm

Re: Redirect external trafic port

Thu Feb 12, 2015 6:10 pm

Policy based routing specifically for that type of traffic. You already have it in place partly it sounds like since you have two subnets using two different internet connections.

Something like this.
/ip firewall mangle chain=prerouting action=mark-routing protocol=tcp dst-port=25 src-address=192.168.10.0/24 new-routing mark=to_pppoe2
/ip route add gateway=pppoe2 routing-mark=to_pppoe2 dst-address=0.0.0.0/0
 
Clauu
Member Candidate
Member Candidate
Topic Author
Posts: 217
Joined: Fri Mar 21, 2014 8:27 pm
Location: RO

Re: Redirect external trafic port

Thu Feb 12, 2015 6:17 pm

Thank you sir :)

Who is online

Users browsing this forum: Bing [Bot], nescafe2002, NetHorror and 93 guests