thanks! cbkihong,
i'm willing to change the sshd port
meanwhile i'm learning on IPFW and managed to get IPFW up
but while configuring the rules, I stucked at here:
Quote:
############### start of example ipfw rules script #############
#
ipfw -q -f flush # Delete all rules
# Set defaults
oif="tun0" # out interface
odns="192.0.2.11" # ISP's DNS server IP address
cmd="ipfw -q add " # build rule prefix
ks="keep-state" # just too lazy to key this each time
$cmd 00500 check-state
$cmd 00502 deny all from any to any frag
$cmd 00501 deny tcp from any to any established
$cmd 00600 allow tcp from any to any 80 out via $oif setup $ks
$cmd 00610 allow tcp from any to $odns 53 out via $oif setup $ks
$cmd 00611 allow udp from any to $odns 53 out via $oif $ks
################### End of example ipfw rules script ############
this is /etc/ipfw.rules script sourced at
IPFW
just a simple question:
do i need to change
Quote:
oif="tun0" # out interface
odns="192.0.2.11" # ISP's DNS server IP address
1. tun0 to my ethernet id
2. odns to my ISP DNS server?
let say from ifconfig, my ethernet is "bge0"
and my DNS IP is 202.188.1.1 and 202.188.2.2
thanks for advice