Op mijn FreeBSD 4.6 router wil ik een port forward/port map instellen naar een server op mijn LAN. Ik gebruik IPFW/natd/ om internet te delen.
# man natd
• # natd -interface xl0 -redirect_port tcp 10.0.0.6:80 80
Maar krijg een foutmelding:
• natd: Unable to bind divert socket.: Address already in use
• # ipfw show
00050 59757019 45034588629 divert 8668 ip from any to any via xl0
00100 3424 481100 allow ip from any to any via lo0
00200 0 0 deny ip from any to 127.0.0.0/8
00300 0 0 deny ip from 127.0.0.0/8 to any
65000 117213287 88775987606 allow ip from any to any
65535 0 0 deny ip from any to any
Wat doe ik nou fout? xl0 is de interface die aan de internet verbinding hangt, en 10.0.0.6 een server op mijn LAN die ik als webserver wil inrichten. Kan iemand mij helpen?
# man natd
Dus ik geef commando:-redirect_port proto targetIP:targetPORT[-targetPORT]
[aliasIP:]aliasPORT[-aliasPORT]
[remoteIP[:remotePORT[-remotePORT]]]
Redirect incoming connections arriving to given port(s) to
another host and port(s). Argument proto is either tcp or
udp, targetIP is the desired target IP number, targetPORT is
the desired target port number or range, aliasPORT is the
requested port number or range, and aliasIP is the aliasing
address. Arguments remoteIP and remotePORT can be used to
specify the connection more accurately if necessary. The
targetPORT range and aliasPORT range need not be the same
numerically, but must have the same size. If remotePORT is
not specified, it is assumed to be all ports. If remotePORT
is specified, it must match the size of targetPORT, or be 0
(all ports).
• # natd -interface xl0 -redirect_port tcp 10.0.0.6:80 80
Maar krijg een foutmelding:
• natd: Unable to bind divert socket.: Address already in use
• # ipfw show
00050 59757019 45034588629 divert 8668 ip from any to any via xl0
00100 3424 481100 allow ip from any to any via lo0
00200 0 0 deny ip from any to 127.0.0.0/8
00300 0 0 deny ip from 127.0.0.0/8 to any
65000 117213287 88775987606 allow ip from any to any
65535 0 0 deny ip from any to any
Wat doe ik nou fout? xl0 is de interface die aan de internet verbinding hangt, en 10.0.0.6 een server op mijn LAN die ik als webserver wil inrichten. Kan iemand mij helpen?