1. setting ip 2 isp
2. setting nat
src nat, out int ether-isp1, action masquarade
src nat, out int ether-isp2, action masquarade
3. buat mangle
prerouting dst address 10.10.1.0/24 (ip lan) action accept
prerouting dst address ip network dari isp1 (ip lan) action accept
prerouting dst address ip network dari isp2 action accept
3. Mangle
prerouting, in int ether-isp1 action mark connection, new mark : ISP1
prerouting, in int ether-isp2 action mark connection, new mark : ISP2
4. mangle
prerouting, in interface ether-lan, per connection classifier both address 3 / 0, action mark connection new connection ISP1 (pilih yg udah ada) passtork ceklis
prerouting, in interface ether-lan, per connection classifier both address 3 / 1, action mark connection new connection ISP2 (pilih yg udah ada) passtorgh ceklis
prerouting, in interface ether-lan, per connection classifier both address 3 / 2, action mark connection new connection ISP2 (pilih yg udah ada) passtorgh ceklis
5. mangle
prerouting, int interface ether-lan, connection mark isp1 (udh ada), action : mark routing, new routing keIsp1 (Buat baru) passtorgh ok
prerouting, int interface ether-lan, connection mark isp2 (udh ada), action : mark routing, new routing keIsp1 (Buat baru) passtorgh ok
6. mangle
chain output, connection mark isp1 (udh ada), action mark routing, new routing mark keIsp1 (udh ada)
chain output, connection mark isp2 (udh ada), action mark routing, new routing mark keIsp2 (udh ada)
7. ip route, 0.0.0.0/0 gateway 10.10.1.1, chek gateway ping, routing mark keIsp1
ip route, 0.0.0.0/0 gateway 172.16.2.1, chek gateway ping, routing mark keIsp2
ip route, 0.0.0.0/0 gateway ip isp 1, distance 2 routing mark keIsp1
ip route, 0.0.0.0/0 gateway ip isp 2, distance 2 routing mark keIsp1
Tidak ada komentar:
Posting Komentar