« Mikrotik : NAT IP » : différence entre les versions
De www.yakakliker.org
(Page créée avec « <syntaxhighlight lang="bash"> /ip firewall nat add chain=dstnat dst-address=10.5.8.200 dst-port=21 protocol=tcp action=dst-nat to-addresses=192.168.0.109 /ip firewall nat add chain=dstnat dst-port=5060 action=dst-nat protocol=tcp to-address=172.18.15.243 to-port=5060 /ip firewall nat add chain=dstnat dst-port=5060 action=dst-nat protocol=udp to-address=172.18.15.243 to-port=5060 </syntaxhighlight> === Liens === https://wiki.mikrotik.com/wiki/Manual:IP/Firewa... ») |
Aucun résumé des modifications |
||
Ligne 6 : | Ligne 6 : | ||
/ip firewall nat add chain=dstnat dst-port=5060 action=dst-nat protocol=tcp to-address=172.18.15.243 to-port=5060 | /ip firewall nat add chain=dstnat dst-port=5060 action=dst-nat protocol=tcp to-address=172.18.15.243 to-port=5060 | ||
/ip firewall nat add chain=dstnat dst-port=5060 action=dst-nat protocol=udp to-address=172.18.15.243 to-port=5060 | /ip firewall nat add chain=dstnat dst-port=5060 action=dst-nat protocol=udp to-address=172.18.15.243 to-port=5060 | ||
</syntaxhighlight><syntaxhighlight lang="bash"> | |||
/ip firewall nat | |||
add chain=dstnat dst-address=10.5.8.200 dst-port=21 protocol=tcp action=dst-nat to-addresses=192.168.0.109 | |||
add action=dst-nat chain=dstnat dst-address=192.168.252.231/32 to-addresses=172.16.10.5 | |||
add action=src-nat chain=srcnat src-address=172.16.10.5/32 to-addresses=192.168.252.231 | |||
</syntaxhighlight> | </syntaxhighlight> | ||
Version du 19 mars 2024 à 16:47
/ip firewall nat
add chain=dstnat dst-address=10.5.8.200 dst-port=21 protocol=tcp action=dst-nat to-addresses=192.168.0.109
/ip firewall nat add chain=dstnat dst-port=5060 action=dst-nat protocol=tcp to-address=172.18.15.243 to-port=5060
/ip firewall nat add chain=dstnat dst-port=5060 action=dst-nat protocol=udp to-address=172.18.15.243 to-port=5060
/ip firewall nat
add chain=dstnat dst-address=10.5.8.200 dst-port=21 protocol=tcp action=dst-nat to-addresses=192.168.0.109
add action=dst-nat chain=dstnat dst-address=192.168.252.231/32 to-addresses=172.16.10.5
add action=src-nat chain=srcnat src-address=172.16.10.5/32 to-addresses=192.168.252.231