# Forward localnet with masquerading (udp and tcp, no icmp!):
${FW} -F -a m -P tcp -S localnet/8 -D default/0
${FW} -F -a m -P udp -S localnet/8 -D default/0
Here all traffic from the local LAN with any destination gets redirected to the
local port 8080. Rules can be viewed like this:
IP firewall input rules, default policy: reject
type prot source destination ports
acc all 127.0.0.1 127.0.0.1 n/a
acc/r tcp 10.0.0.0/8 0.0.0.0/0 * -> 80 => 8080
acc all 10.0.0.0/8 0.0.0.0/0 n/a
acc tcp 0.0.0.0/0 0.0.0.0/0 * -> *
| wuzy 回复于:2003-02-24 11:33:23 |
| 我喜欢!
顶一下! |
| wuzy 回复于:2003-02-24 11:33:23 |
| 我喜欢!
顶一下! |
| 好好先生 回复于:2003-08-11 14:19:23 |
| 我想转载一下,可以吗? |
| aashen 回复于:2003-08-11 15:50:05 |
| 啊,顶 |