Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Mar 2015 00:37:33 +0900 (JST)
From:      zen-freebsd-users@suzuki.que.ne.jp
To:        freebsd-users-jp@freebsd.org
Subject:   [FreeBSD-users-jp 95494] Re: =?iso-2022-jp?b?aXBmdxskQiRHRkNEahsoQklQGyRCMEozMCROQFwbKEI=?= =?iso-2022-jp?b?GyRCQjMkckU+QXckNyQ/JCQbKEI=?=
Message-ID:  <20150330.003733.1964185496119167015.inetd@x.inetd.co.jp>
In-Reply-To: <20150327223631.CC77.A7D5A726@agate.plala.or.jp>
References:  <20150327223631.CC77.A7D5A726@agate.plala.or.jp>

next in thread | previous in thread | raw e-mail | index | archive | help
$BNkLZ!w3k>~6h$G$9!#(B

> ipfw$B$rMxMQ$7$F!"FCDj(BIP$B0J30$+$i$N(Bssh(22/tcp)$B%"%/%;%9$O(B
> $B0c$&%]!<%H(B(2222/tcp)$B$KE>Aw$7$?$$$H9M$($F$$$^$9!#(B
> 
> $BFCDj(BIP$B$+$i(B22/tcp$B$G@\B3$7$?>l9g$OIaDL$K(Bssh$B$K@\B3$5$l$k$,!"(B
> $B$=$l0J30$+$i$N(B22/tcp$B@\B3$O!"(Bkippo(2222/tcp)$B$X@\B3$5$;$?$$$H9M$($F$$$^$9!#(B
> 
> $B$=$3$G!"(Bipfw$B$N@_Dj%U%!%$%k$K2<5-$N5-:\$r$7$F$_$^$7$?!#(B
> 
> add 1001 fwd 127.0.0.1,2222 log tcp from not <$BFCDj(BIP> to me 22
> 
> $B@\B3%F%9%H$r$7$?$H$3$m!"(B2222$B$K@\B3$;$:!"$=$N$^$^(B22/tcp$B$N(Bssh$B$K(B
> $B@\B3$5$l$^$7$?!#(B

ipfw$B$N(B fwd $B$G$O%j%b!<%H$KE>Aw$9$k>l9g%]!<%HHV9f$NJQ99$O9T$o$l$^$;$s(B($BL5(B
$B;k$5$l$^$9(B)$B!#(B
(man ipfw$B$N(Bfwd$B$K4X$9$k5-=R$NH4?h$G$9(B)
  If ipaddr is not a local address, then the port number (if speci-
  fied) is ignored, and the packet will be forwarded to the remote
  address, using the route as found in the local routing table for
  that IP.

$B%j%b!<%H%]!<%H$NJQ99$r9T$&$?$a$K$O%Q%1%C%H$NCf?H$r=q$-49$($J$$$H%@%a$J(B
$B$N$G(Bipfw$BC1FH$G$OBP1~$7$F$$$J$$$N$@$H;W$$$^$9!#(B
$B;n$7$F$$$^$;$s$N$GJ,$+$j$^$;$s$,!"(Bnatd$B$r;H$C$F$N%]!<%HJQ49$r9T$&$+!"(B
ipfw$B$G$O$J$/(Bpf$B$H$+$J$i$G$-$k$N$+$bCN$l$^$;$s!#(B
---
$B$9$:$-(B



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20150330.003733.1964185496119167015.inetd>