Header Ads Widget

Ticker

6/recent/ticker-posts

Memisahkan IIX ke ISP wireless dan Internasional ke speedy

Langsung kode aja yahhh :)

code :
/ ip firewall mangle
add chain=prerouting src-address=10.0.0.0/24 dst-address-list=nice \
action=mark-connection new-connection-mark=mark-con-indonesia \
passthrough=yes comment="" disabled=no
add chain=prerouting src-address=10.0.0.0/24 dst-address-list=!nice \
action=mark-connection new-connection-mark=mark-con-overseas \
passthrough=yes comment="" disabled=no
add chain=prerouting connection-mark=mark-con-indonesia action=mark-packet \
new-packet-mark=indonesia passthrough=yes comment="" disabled=no
add chain=prerouting connection-mark=mark-con-overseas action=mark-packet \
new-packet-mark=overseas passthrough=yes comment="" disabled=no
add chain=prerouting in-interface="Atas - Lan" packet-mark=overseas \
action=mark-routing new-routing-mark=speedy passthrough=no comment="" \
disabled=no

/ ip route
add dst-address=0.0.0.0/0 gateway=222.222.222.1 scope=255 target-scope=10 \
comment="ISP Wireless" disabled=no
add dst-address=0.0.0.0/0 gateway=192.168.1.1 scope=255 target-scope=10 \
routing-mark=speedy comment="Speedy" disabled=no

add name="LAN" target-addresses=10.0.0.0/24 dst-address=10.0.0.0/24 \
interface=all parent=none direction=both priority=8 \
queue=default-small/default-small limit-at=0/0 max-limit=0/0 \
total-queue=default-small disabled=no
add name="Billing iix" target-addresses=10.0.0.2/32 dst-address=0.0.0.0/0 \
interface=all parent=none packet-marks=indonesia direction=both priority=8 \
queue=default-small/default-small limit-at=0/0 max-limit=128000/128000 \
total-queue=default-small disabled=no
add name="Billing int" target-addresses=10.0.0.2/32 dst-address=0.0.0.0/0 \
interface=all parent=none packet-marks=overseas direction=both priority=8 \
queue=default-small/default-small limit-at=0/0 max-limit=64000/64000 \
total-queue=default-small disabled=no

nat nya dibagi dua juga ga bos?
apa di masquerade aja.
satu global nat pake masquerade tanpa menyebutkan out interface boleh.
dua global nat dengan masquerade dengan menyebutkan out interface juga boleh.
dua src-nat dengan menyebutkan src-address dan to-adress juga boleh.
gunakan lah yang sesuai dengan ilmu yang di miliki... biar gampang ngebenerinnya klo kenapa2 :D

Post a Comment

0 Comments