set
interfaces Ethernet eth0 address 192.168.1.205/24
set
interfaces Ethernet eth1 address 192.168.2.50/24
set system
gateway-address 192.168.1.1
set system
host-name masmur
set sytem
domain-name masmur.com
set system
name-server 203.130.193.74
commit
save
set service
nat rule 1 source address 192.168.2.50-192.168.2.70
set service
nat rule 1 outbound –interfaces eth0
set service
nat rule 1 type masquerade
commit
save
set service
dns forwarding listen-on eth1
set service
dns forwarding name-server 203.130.193.74
commit
save
set service
webproxy cache-size 10000
set service
webproxy listen-address 192.168.2.50
set service
webproxy url-filtering squidguard local-ok all
commit
save
set firewall
name ALLOW_ESTABLISHED 10 action accept
set firewall
name ALLOW_ESTABLISHED 10 state established enable
commit
save
cara
mereset:
load
/opt/vyatta/etc/config.boot.default
Set interfaces Ethernet eth0 address 192.168.1.205/24
Set interfaces Ethernet eth1 address 192.168.2.50/50
Set system gatwey-address 192.168.1.1
Set system host-name masmur
Set system domain-name masmur.com
Set system name-server 203.130.193.74
Commit
save
save
Set service nat rule 1 source address
192.168.2.50-192.168.2.60
Set service nat rule 1 outbound-interfaces eth0
Set service nat rule 1 type masquerade
Commit
Save
Set service dns forwarding listen-on eth1
Set service dns forwarding name-server 203.130.193.74
Ccommit
Save
Set service webproxy cache-size 10000
Set service webproxy listen-address 192.168.2.50
Set service webproxy url-filtering squidguard local-ok all
Commit
Save
Set firewall name ALLOW_ESTABLISHED rule 10 action accept
Set firewall name ALLOW_ESTABLISHED rule 10 state established
anable
Commit
Save
Set service webproxy url-filtering squidguard local-block
facebook.com
Ser service webproxy url-filtering squidguard local-block
youtube.com
Commit
Save
kali ini saya akan memposting tentang konfigurasi linux vyatta menjadi router. inilah cara singkatnya dan saya sendiri juga sudah mencobanya, dan hasil nya sangat memuaskan.
Cara mereset:
Load /opt/vyatta/etc/config.boot.default
Set interfaces Ethernet eth0 address 192.168.1.205/24
Set interfaces Ethernet eth1 address 192.168.2.50/24
Set system gatwey-address 192.168.1.1
Set service host-name maiz
Set service domain-name maiz.com
Set service name-server 203.130.193.74
Commit
Save
Set service nat rule 1 source address
192.168.2.50.192.168.2.60
Ser service nat rule 1 outbound-interfaces eth0
Set service nat rule 1 type masquerade
Commit
Save
Set service dns forwarding listen-on eth1
Set service dns forwarding name-server 203.130.193.74
Ccommit
Save
Set service webproxy cache-size 10000
Set service webproxy listen-address 192.168.2.50
Set service webproxy url-filtering squidguard local-ok all
Commit
Save
Set firewall name ALLOW_ESTABLISHED rule 10 action accept
Set firewall nameALLOW_ESTABLISHED rule 10 state established
enable
Commit
Save
Set service https
Commit
Save
Set service webproxy url-filtering squidguard local-block
facebook.com
Set service webproxy url-filtering squidguard local-block
youtube.com
Commit
Save
Load /opt/vyatta/etc/config.boot.default
Set interfaces Ethernet eth0 address 192.168.1.205/24
Set interfaces Ethernet eth1 address 192.168.2.50/24
Set system gateway address 192.168.1.1
Set sytem host-name maiz
Set system domain-name maiz.com
Set system name-server 203.130.193.74
Commit
Save
Set service nat rule 1 source address
192.168.2.50-192.168.2.60
Set service nat rule 1 outbound-interfaces eth0
Set service nat rule 1 type masquerade
Commit
Save
Set service dns forwarding listen-on eth1
Set service dns forwarding name-server 203.130.193.74
Commit
Save
Set service webproxy cache-size 10000
Set service webproxy listen-address 192.168.2.50
Set service webproxy url-filtering squidguard local-ok all
Commit
Save
Set firewall name ALLOW_ESTABLISHED rule 10 action accept
Set firewall name ALLOW_ESTABLISHED rule 10 state established
enable
Commit
Save
Set service webproxy url-filtering squidguard local-block
facebook.com
Set service webproxy url-filtering squidguard local-block
youtube.com
Commit
Save
Load /opt/vyatta/etc/cconfig.boot.default
Tidak ada komentar:
Posting Komentar