smb
and lanmanserver
drivers are up and running.
hdwwiz.exeThe Hardware Wizard will come up:
lanmanserver
driver for all interfaces.
By delaying the startup of the lanmanserver
driver and by installing a
portproxy
rule we can circumvent this. This section explains how
to do this:
lanmanserver
driver:sc config lanmanserver start= demandNOTE the space after the
start=
!
IpHlpSvc
driver is running at startup, as otherwise
the portproxy rules are not executed:sc config iphlpsvc start= autoNOTE the space after the
start=
!
portproxy
rule to reroute TCP port 445 to a port of
our choosing. For this tutorial, I choose 44445:
netsh interface portproxy add v4tov4 listenaddress=10.255.255.1 listenport=445 connectaddress=10.255.255.1 connectport=44445IMPORTANT NOTES:
listenaddress
is the address of the Loopback adapter
configured in the section earlier
connectaddress
must be identical to the listenaddress
listenaddress=127.0.0.1
does not work. Believe me, I've tried.
portproxy
rule is persistent, so there should be no need to repeat
this step after a reboot.
portproxy
was applied successfully by checking the open ports
on the system. Type in the command console
netstat -an | find ":445 "You should see something like
TCP 10.255.255.1:445 0.0.0.0:0 LISTENINGIf you see '
0.0.0.0:445
' instead then the 'portproxy' rule was not applied
correctly. Verify that the right 'portproxy' rule was used
netsh interface portproxy show v4tov4and verify that the
IpHlpSvc
driver is running at Windows startup using
sc query iphlpsvc
sc query lanmanserverThe 'LanmanServer' driver should be in the state Running. If it is not, then follow these steps to create a task using the Task Schedule to start them at system startup.
portproxy
method: it is no longer possible
to use local shares on the computer while this rule is active.
port-forwarding
:
login.nikhef.nl
. Choose host login2.nikhef.nl
and protocol SSH.
login2.nikhef.nl
as normal.
login2.nikhef.nl
and press OK.
login.nikhef.nl
and press OK.
smb
driver by typing
sc config lanmanserver start= autoNOTE the space after the
start=
!
portproxy
rule by typing
netsh interface portproxy delete v4tov4 listenaddress=10.255.255.1 listenport=445
Device Manager
by typing
devmgmt.mscExpand the 'Network Adapters', right-click on Loopback adapter and select Uninstall.