Add Text to Text File
$10-30 USD
$10-30 USD
Paid on delivery
a website or a visual basic Named (NTH-Mikrotik) that can enter a number ( X ) and (X) interface print that.
Number of NHT ( 3 ) - Interface name (ether10) :
========================================
/ip firewall mangle
add action=mark-connection chain=prerouting connection-state=new dst-address-type=!local in-interface=ether10 new-connection-mark=conn1 nth=3,1 passthrough=yes
add action=mark-routing chain=prerouting connection-mark=conn1 in-interface=ether10 new-routing-mark=conn1 passthrough=no
add action=mark-connection chain=prerouting connection-state=new dst-address-type=!local in-interface=ether10 new-connection-mark=conn2 nth=2,1 passthrough=yes
add action=mark-routing chain=prerouting connection-mark=conn2 in-interface=ether10 new-routing-mark=conn2 passthrough=no
add action=mark-connection chain=prerouting connection-state=new dst-address-type=!local in-interface=ether10 new-connection-mark=conn3 nth=1,1 passthrough=yes
add action=mark-routing chain=prerouting connection-mark=conn3 in-interface=ether10 new-routing-mark=conn3 passthrough=no
/ip route
add check-gateway=ping distance=1 gateway=pppoe-out1 routing-mark=conn1 scope=255
add check-gateway=ping distance=1 gateway=pppoe-out2 routing-mark=conn2 scope=255
add check-gateway=ping distance=1 gateway=pppoe-out3 routing-mark=conn3 scope=255
add distance=1 gateway=pppoe-out1
add distance=1 gateway=pppoe-out2
add distance=1 gateway=pppoe-out3
so when i put number 2 and interface name is bridge1 the script will be this :
==============================================================
/ip firewall mangle
add action=mark-connection chain=prerouting connection-state=new dst-address-type=!local in-interface=bridge1 new-connection-mark=conn1 nth=2,1 passthrough=yes
add action=mark-routing chain=prerouting connection-mark=conn1 in-interface=ether10 new-routing-mark=conn1 passthrough=no
add action=mark-connection chain=prerouting connection-state=new dst-address-type=!local in-interface=bridge1 new-connection-mark=conn2 nth=1,1 passthrough=yes
add action=mark-routing chain=prerouting connection-mark=conn2 in-interface=ether10 new-routing-mark=conn2 passthrough=no
/ip route
add check-gateway=ping distance=1 gateway=pppoe-out1 routing-mark=conn1 scope=255
add check-gateway=ping distance=1 gateway=pppoe-out2 routing-mark=conn2 scope=255
add distance=1 gateway=pppoe-out1
add distance=1 gateway=pppoe-out2
so the changes only on in-interface by names and the nth and ip route if adding 3 or 2 or 100...etc
Project ID: 18571735
About the project
Remote project
Active 5 yrs ago
Looking to make some money?
Benefits of bidding on Freelancer
Set your budget and timeframe
It's free to sign up and bid on jobs