Add Text to Text File
$10-30 USD
Kiadva ekkor: körülbelül 5 évvel ezelőtt
$10-30 USD
Teljesítéskor fizetve
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
Projektazonosító: 18571735
A projektről
Távolról teljesíthető projekt
Aktiválva: 5 évvel ezelőtt
Szeretne pénzt keresni?
A Freelancer oldalán történő árajánlatadás előnyei
Határozzon meg költségvetést és időkeretet
Kapja meg fizetését a munkáért
Ingyen regisztrálhat és adhat árajánlatot munkákra