10 Langkah Instalasi OpenWRT Kamikaze

[1] download OpenWRT terbaru di : http://downloads.openwrt.org/

[2] upgrade firmware menjadi OpenWRT via web

[3] ganti password

[4] masuk terminal/console menggunakan ssh

[5] # opkg update

[6] # opkg install snmpd libnetsnmp

[7] # /etc/init.d/snmpd enable

[8] # /etc/init.d/snmpd start

[9] # vi /etc/firewall.user

paste:

#———————– BOF ————————————————-
############
# Open port to WAN
# design by: gustOmO
############

## — This allows port 80 to be answered by (mywebserver on) the router
#iptables -A input_rule -i eth0.1 -p tcp –dport 80 -j ACCEPT
#iptables -t nat -A prerouting_rule -i eth0.1 -p tcp –dport 80 -j ACCEPT
iptables -A input_rule -i eth0.1 -p udp –dport 161 -j ACCEPT
iptables -t nat -A prerouting_rule -i eth0.1 -p udp –dport 161 -j ACCEPT
iptables -A input_rule -p tcp –dport 22 -j ACCEPT
iptables -t nat -A prerouting_rule -p tcp -d 202.x.x.x/24 –dport 22 -j DNAT –to-destination 202.x.x.x/24:22
iptables -A input_wan -p icmp –icmp-type 8 -j ACCEPT
#———————– EOF ————————————————-

[10] # reboot

Advertisements