hello and welcome:
UPDATED
i have been looking for solution to my problem now for long time i tried many things i read many threads if you could help or try i will be thankful to you
my problem is when my clients want to use almost any software on pc or device like ps4 or xbox one (creating a party) they always have nat problem but when the host is from outside network it work with no problem
my setup
MT:CCR1009-8G-1s-1s+
i am using hotspot and ip bindings(bypassed) my clients then limit bandwidth using queues [ the reason am doing this is when script disable bypass clients will see the hotspot page (removed login) also queues are not dynamic so i can controll bandwidth using script ]
interface
0 R ;;; in 192.168.100.1
ether1 ether 1500 1578
1 R ;;; 192.168.200.1
ether2 ether 1500 1578
2 R ;;; 192.168.111.1
ether3 ether 1500 1578
3 R ;;; 192.168.3.1
ether4 ether 1500 1578
4 R ;;; 192.168.5.1
ether5 ether 1500 1580
5 R ;;; out+++++++++++++++
ether6 ether 1500 1580
i use 5 routers isp using load-balance :
/ ip firewall mangle
add chain=input in-interface=ether1 action=mark-connection new-connection-mark=ether1_conn
add chain=input in-interface=ether2 action=mark-connection new-connection-mark=ether2_conn
add chain=input in-interface=ether3 action=mark-connection new-connection-mark=ether3_conn
add chain=input in-interface=ether4 action=mark-connection new-connection-mark=ether4_conn
add chain=input in-interface=ether5 action=mark-connection new-connection-mark=ether5_conn
add action=mark-routing chain=output connection-mark=WAN1_conn new-routing-mark=to_ether1
add action=mark-routing chain=output connection-mark=WAN2_conn new-routing-mark=to_ether2
add action=mark-routing chain=output connection-mark=WAN3_conn new-routing-mark=to_ether3
add action=mark-routing chain=output connection-mark=WAN4_conn new-routing-mark=to_ether4
add action=mark-routing chain=output connection-mark=WAN5_conn new-routing-mark=to_ether5
add chain=prerouting dst-address=192.168.100.0/24 in-interface=ether6
add chain=prerouting dst-address=192.168.200.0/24 in-interface=ether6
add chain=prerouting dst-address=192.168.111.0/24 in-interface=ether6
add chain=prerouting dst-address=192.168.3.0/24 in-interface=ether6
add chain=prerouting dst-address=192.168.5.0/24 in-interface=ether6
add action=mark-connection chain=prerouting dst-address-type=!local in-interface=ether6 new-connection-mark=WAN1_conn per-connection-classifier=both-addresses-and-ports:5/0
add action=mark-connection chain=prerouting dst-address-type=!local in-interface=ether6 new-connection-mark=WAN2_conn per-connection-classifier=both-addresses-and-ports:5/1
add action=mark-connection chain=prerouting dst-address-type=!local in-interface=ether6 new-connection-mark=WAN3_conn per-connection-classifier=both-addresses-and-ports:5/2
add action=mark-connection chain=prerouting dst-address-type=!local in-interface=ether6 new-connection-mark=WAN4_conn per-connection-classifier=both-addresses-and-ports:5/3
add action=mark-connection chain=prerouting dst-address-type=!local in-interface=ether6 new-connection-mark=WAN5_conn per-connection-classifier=both-addresses-and-ports:5/4
add action=mark-routing chain=prerouting connection-mark=WAN1_conn in-interface=ether6 new-routing-mark=to_WAN1
add action=mark-routing chain=prerouting connection-mark=WAN2_conn in-interface=ether6 new-routing-mark=to_WAN2
add action=mark-routing chain=prerouting connection-mark=WAN3_conn in-interface=ether6 new-routing-mark=to_WAN3
add action=mark-routing chain=prerouting connection-mark=WAN4_conn in-interface=ether6 new-routing-mark=to_WAN4
add action=mark-routing chain=prerouting connection-mark=WAN5_conn in-interface=ether6 new-routing-mark=to_WAN5
/ip firewall nat
add action=masquerade chain=srcnat out-interface=ether1
add action=masquerade chain=srcnat out-interface=ether2
add action=masquerade chain=srcnat out-interface=ether3
add action=masquerade chain=srcnat out-interface=ether4
add action=masquerade chain=srcnat out-interface=ether5
/ip route
add check-gateway=ping distance=1 gateway=192.168.100.1 routing-mark=to_WAN1
add check-gateway=ping distance=1 gateway=192.168.200.1 routing-mark=to_WAN2
add check-gateway=ping distance=1 gateway=192.168.111.1 routing-mark=to_WAN3
add check-gateway=ping distance=1 gateway=192.168.3.1 routing-mark=to_WAN4
add check-gateway=ping distance=1 gateway=192.168.5.1 routing-mark=to_WAN5
add check-gateway=ping distance=1 gateway=192.168.100.1
add check-gateway=ping distance=2 gateway=192.168.200.1
add check-gateway=ping distance=3 gateway=192.168.111.1
add check-gateway=ping distance=4 gateway=192.168.3.1
add check-gateway=ping distance=5 gateway=192.168.5.1
my dns
servers: 8.8.8.8,8.8.4.4
dynamic-servers:
allow-remote-requests: yes
max-udp-packet-size: 4096
query-server-timeout: 2s
query-total-timeout: 10s
cache-size: 2048KiB
cache-max-ttl: 1w
cache-used: 1438Ki
DHCP clients
# INTERFACE USE-PEER-DNS ADD-DEFAULT-ROUTE STATUS ADDRESS
0 ether2 no no bound 192.168.200.2/24
1 ether3 no no bound 192.168.111.2/24
2 ether4 no no bound 192.168.3.2/24
3 ether1 no no bound 192.168.100.2/24
4 ether5 no no bound 192.168.5.2/24
current nat
0 D chain=dstnat action=jump jump-target=hotspot hotspot=from-client log=no log-prefix=""
1 D chain=hotspot action=jump jump-target=pre-hotspot log=no log-prefix=""
2 D chain=hotspot action=redirect to-ports=64872 protocol=udp dst-port=53 log=no
log-prefix=""
3 D chain=hotspot action=redirect to-ports=64872 protocol=tcp dst-port=53 log=no
log-prefix=""
4 D chain=hotspot action=redirect to-ports=64873 protocol=tcp hotspot=local-dst dst-port=8>
log=no log-prefix=""
5 D chain=hotspot action=redirect to-ports=64875 protocol=tcp hotspot=local-dst
dst-port=443 log=no log-prefix=""
6 D chain=hotspot action=jump jump-target=hs-unauth protocol=tcp hotspot=!auth log=no
log-prefix=""
7 D chain=hotspot action=jump jump-target=hs-auth protocol=tcp hotspot=auth log=no
log-prefix=""
8 D chain=hs-unauth action=redirect to-ports=64874 protocol=tcp dst-port=80 log=no
log-prefix=""
9 D chain=hs-unauth action=redirect to-ports=64874 protocol=tcp dst-port=3128 log=no
log-prefix=""
10 D chain=hs-unauth action=redirect to-ports=64874 protocol=tcp dst-port=8080 log=no
log-prefix=""
11 D chain=hs-unauth action=redirect to-ports=64875 protocol=tcp dst-port=443 log=no
log-prefix=""
12 D chain=hs-unauth action=jump jump-target=hs-smtp protocol=tcp dst-port=25 log=no
log-prefix=""
13 D chain=hs-auth action=redirect to-ports=64874 protocol=tcp hotspot=http log=no
log-prefix=""
14 D chain=hs-auth action=jump jump-target=hs-smtp protocol=tcp dst-port=25 log=no
log-prefix=""
15 X ;;; place hotspot rules here
chain=unused-hs-chain action=passthrough log=no log-prefix=""
16 chain=srcnat action=masquerade out-interface=ether1 log=no log-prefix=""
17 chain=srcnat action=masquerade out-interface=ether2 log=no log-prefix=""
18 chain=srcnat action=masquerade out-interface=ether3 log=no log-prefix=""
19 chain=srcnat action=masquerade out-interface=ether4 log=no log-prefix=""
20 chain=srcnat action=masquerade out-interface=ether5 log=no log-prefix=""
21 ;;; masquerade hotspot network
chain=srcnat action=masquerade src-address=10.0.0.0/24 log=no log-prefix=""
upnp:
enabled: yes
allow-disable-external-interface: no
show-dummy-rule: yes
upnp interfaces :
# INTERFACE TYPE FORCED-EXTERNAL-IP
0 ether2 external
1 ether6 internal
2 ether3 external
3 ether4 external
4 ether1 external
5 ether5 external
route:
# DST-ADDRESS PREF-SRC GATEWAY DISTANCE
0 X S 0.0.0.0/0 192.168.100.1 1
1 X S 0.0.0.0/0 192.168.200.1 1
2 X S 0.0.0.0/0 192.168.111.1 1
3 X S 0.0.0.0/0 192.168.3.1 1
4 X S 0.0.0.0/0 192.168.5.1 1
6 A S 0.0.0.0/0 192.168.100.1 1
7 A S 0.0.0.0/0 192.168.200.1 1
8 A S 0.0.0.0/0 192.168.111.1 1
9 A S 0.0.0.0/0 192.168.3.1 1
10 A S 0.0.0.0/0 192.168.5.1 1
11 A S 0.0.0.0/0 192.168.100.1 1
12 S 0.0.0.0/0 192.168.200.1 2
13 S 0.0.0.0/0 192.168.111.1 3
14 S 0.0.0.0/0 192.168.3.1 4
15 S 0.0.0.0/0 192.168.5.1 5
16 X S 0.0.0.0/0 192.168.100.1 1
192.168.200.1
192.168.3.1
192.168.5.1
192.168.111.1
17 ADC 10.0.0.0/24 10.0.0.2 ether6 0
18 ADC 192.168.3.0/24 192.168.3.2 ether4 0
19 ADC 192.168.5.0/24 192.168.5.2 ether5 0
20 ADC 192.168.100.0/24 192.168.100.2 ether1 0
21 ADC 192.168.111.0/24 192.168.111.2 ether3 0
22 ADC 192.168.200.0/24 192.168.200.2 ether2 0
