What configuration needs to be done to the firewall to allow this
traffic through? Can the YPSERV ports be locked down or limitted so
we can pass them through the firewall? Or does this only work without
Windows Firewall?
Thanks!
<snip>
@ECHO OFF
Echo Checking the current Firewall rules for NIS ports and deleting
them...
FOR /F "tokens=1,2" %%P in ( ' NETSH Firewall Show PortOpening ^|
FindStr NIS ' ) do @NETSH Firewall DELETE PortOpening %%Q %%P
Echo Scanning the ports used by NIS Service now and then adding them
to Firewall rules
FOR /F "tokens=3,4" %%A in ( 'RPCINFO -P ^| FindStr "ypserv
yppasswdd"' ) do @NETSH Firewall ADD PortOpening %%A %%B NIS Enable
All
Echo Current Firewall Rules
Echo
-------------------------------------------------------------------
NETSH Firewall SHOW PortOpening
</snip>
You will have to copy and expand the rpcinfo command from either SFU
installation or R2 media in the same directiry as this batch file to
get this to work.
- Ashish