M
M
micropodgon2020-04-06 06:55:36
DHCP
micropodgon, 2020-04-06 06:55:36

How to turn DHCP traffic from non-standard port 6767 to port 67 of DHCP Mikrotik?

Good afternoon, dear Mikrotik experts! Help, please
There is a Jitsi program on Windows that can communicate with DHCP only on UPD port
6767. There is Mikrotik, which has DHCP on the standard UDP port 67.
All in one network. There are no other DHCP servers except for Mikrotik.
How to wrap traffic from 6767 -> 67 for traffic to go?

5e8aa769d32ae808987532.jpeg

Answer the question

In order to leave comments, you need to log in

1 answer(s)
H
hint000, 2020-04-06
@hint000

iptables -A INPUT -p udp --dport 6767 -j ACCEPT
iptables -t nat -A PREROUTING -p udp --dport 6767 -j REDIRECT --to-port 67

respectively, translated from human to Mikrotik:
/ip firewall filter add action=accept chain=input dst-port=6767 protocol=udp
/ip firewall nat add action=redirect chain=dstnat dst-port=6767 protocol=udp to-ports=67

PS If there are any forbidding rules, then put these before forbidding ones (this is if you don’t go into too much detail, but if you go into it, you need to carefully study all the existing rules, both in filter and in nat).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question