Community discussions

MikroTik App
 
rrameezsalamat
just joined
Topic Author
Posts: 19
Joined: Tue Nov 03, 2015 1:09 pm

gmail/outlook/thunderbird keeps disconnecting

Tue Mar 30, 2021 10:46 am

hello everyone,

i am facing outlook disconnect every about 3 -5 minutes and reconnect automatically, mozila thunderbird is not sending email on first attempt (if email sent again after few seconds then it goes successfully). i think i am missing something in my script can anyone check my script(below) and tell me where the problem is?
i have 2 wan (50mb each) and using pcc method load balancing. i have a dhcp configured on interface=lan with 172.16.0.0/22

/ip address
add address=172.16.0.1/22 network=172.16.0.0 broadcast=172.16.3.255 interface=Lan
add address=192.168.100.2/24 network=192.168.100.0 broadcast=192.168.100.255 interface=Wan1
add address=192.168.50.2/24 network=192.168.50.0 broadcast=192.168.50.255 interface=Wan2

/ip dns set allow-remote-requests=yes cache-max-ttl=1w cache-size=5000KiB max-udp-packet-size=512 servers=8.8.8.8

/ip firewall mangle
add chain=input in-interface=Wan1 action=mark-connection new-connection-mark=Wan1_conn
add chain=input in-interface=Wan2 action=mark-connection new-connection-mark=Wan2_conn

add chain=output connection-mark=Wan1_conn action=mark-routing new-routing-mark=to_Wan1
add chain=output connection-mark=Wan2_conn action=mark-routing new-routing-mark=to_Wan2

add chain=prerouting dst-address=192.168.50.0/24 action=accept in-interface=Lan
add chain=prerouting dst-address=192.168.100.0/24 action=accept in-interface=Lan

add chain=prerouting dst-address-type=!local in-interface=Lan per-connection-classifier=both-addresses-and-ports:2/0 action=mark-connection new-connection-mark=Wan1_conn passthrough=yes
add chain=prerouting dst-address-type=!local in-interface=Lan per-connection-classifier=both-addresses-and-ports:2/1 action=mark-connection new-connection-mark=Wan2_conn passthrough=yes

add chain=prerouting connection-mark=Wan1_conn in-interface=Lan action=mark-routing new-routing-mark=to_Wan1
add chain=prerouting connection-mark=Wan2_conn in-interface=Lan action=mark-routing new-routing-mark=to_Wan2

/ip route
add dst-address=0.0.0.0/0 gateway=192.168.100.1 routing-mark=to_Wan1 check-gateway=ping
add dst-address=0.0.0.0/0 gateway=192.168.50.1 routing-mark=to_Wan2 check-gateway=ping

add dst-address=0.0.0.0/0 gateway=192.168.100.1 distance=1 check-gateway=ping
add dst-address=0.0.0.0/0 gateway=192.168.50.1 distance=2 check-gateway=ping


/ip firewall nat
add chain=srcnat out-interface=Wan1 action=masquerade
add chain=srcnat out-interface=Wan2 action=masquerade
 
User avatar
SiB
Forum Guru
Forum Guru
Posts: 1888
Joined: Sun Jan 06, 2013 11:19 pm
Location: Poland

Re: gmail/outlook/thunderbird keeps disconnecting

Tue Mar 30, 2021 11:35 pm

Who is online

Users browsing this forum: GoogleOther [Bot] and 52 guests