# New-RASTunnelingPolicy

## NAME

New-RASTunnelingPolicy

## SYNOPSIS

Creates a tunneling policy.

## SYNTAX

**New-RASTunnelingPolicy** -[IP](#ip-string)\*\* *(string)* \[-[PublishType](#PublishType) {AllRDSessionHostsInSite | RDSessionHostPool | RDSessionHosts | None}] \[-[RDSHostIds](#RDSHostIds) *(uint\[])*] \[-[RDSHostPoolIds](#RDSHostPoolIds) *(uint\[])*] \[[SiteId](#siteid-string) *(uint)*] \[*(*[*CommonParameters*](#CommonParameters)*)*]

## DESCRIPTION

Creates a tunneling policy.

## PARAMETERS

## SiteId (uint)

Site ID of the new tunneling policy.

```
        Required?                    false

        Position?                    named

        Default value                0

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## IP (string)

The gateway IP of the tunneling policy.

```
        Required?                    true

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## PublishType

([RDSessionHostsType](https://docs.parallels.com/landing/ras-powershell-api-guide/parallels-ras-powershell-admin-module/types/rdsessionhoststype)) The setting that determines which hosts are affected by the tunneling policy. Default: AllRDSessionHostsInSite.

Possible values: AllRDSessionHostsInSite, RDSessionHostPool, RDSessionHosts, None

```
        Required?                    false

        Position?                    named

        Default value                AllRDSessionHostsInSite

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## RDSHostPoolIds (uint\[])

The IDs of the selected RD session host pools.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## RDSHostIds (uint\[])

The IDs of the selected individual RD session hosts.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

(CommonParameters)

```
        This cmdlet supports the common parameters: Verbose, Debug,

        ErrorAction, ErrorVariable, WarningAction, WarningVariable,

        OutBuffer, PipelineVariable, and OutVariable. For more information, see 

        about_CommonParameters documentation. 
```

## INPUTS

-none-

## OUTPUTS

-none-

## EXAMPLES

**---------- EXAMPLE 1 ----------**

New-RASTunnelingPolicy -IP 1.2.3.4 -PublishType None

Creates a tunneling policy.

## RELATED LINKS

* [Get-RASTunnelingPolicy](https://docs.parallels.com/landing/ras-powershell-api-guide/parallels-ras-powershell-admin-module/commands/get-rastunnelingpolicy)
* [Set-RASTunnelingPolicy](https://docs.parallels.com/landing/ras-powershell-api-guide/parallels-ras-powershell-admin-module/commands/set-rastunnelingpolicy)
* [Remove-RASTunnelingPolicy](https://docs.parallels.com/landing/ras-powershell-api-guide/parallels-ras-powershell-admin-module/commands/remove-rastunnelingpolicy)
