jump to navigation

Perintah yang lucu buat debian 26 Februari 2008

Posted by okho in Uncategorized.
trackback
shutdown -r -t 5 now blah

ifconfig lo down
ifconfig lo up

ifconfig eth0 down
ifconfig eth0 up

ifconfig eth1 down
ifconfig eth1 up

ifconfig eth0 193.61.32.160 up

route add default gw 193.61.32.245

#delete route and IP for dldata.cryst.bbk.ac.uk 193.61.35.93
/sbin/route del -host 193.61.35.93 dev eth0:1
/sbin/ifconfig -v eth0:1 del  193.61.35.93

/sbin/route del -host 193.61.32.164 dev eth1:1
/sbin/ifconfig -v eth1:1 del  193.61.32.164
 echo 1 > /proc/sys/net/ipv4/ip_forward

iptables -F
iptables -F -t nat

# iptables -t nat -A POSTROUTING -s 192.168.2.2/24 -d 0.0.0.0/0 -j MASQUERADE
# iptables -t nat -A POSTROUTING -s 192.168.3.2/24 -d 0.0.0.0/0 -j MASQUERADE
# iptables -t nat -A POSTROUTING -s 192.168.4.2/24 -d 0.0.0.0/0 -j MASQUERADE

# Routing ke wifi poltabes
ip route add 192.168.252.0/24 via 192.168.2.2 table main

# Routing ke dishub untuk akses kamera jatra dan surya dumai
# route add -net 192.168.1.0 netmask 255.255.255.0 gw 172.16.23.1

# Routing ke jatra dan surya dumai lewat wireless wanxp
route add -net 192.168.1.0 netmask 255.255.255.0 gw 192.168.28.1

# Routing ke internet via speedy
iptables -t nat -A POSTROUTING -s 192.168.0.0/16 -d 0.0.0.0/0 -j MASQUERADE

Komentar»

No comments yet — be the first.