# 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](/landing/ras-powershell-api-guide/parallels-ras-powershell-admin-module/types/rdsessionhoststype.md)) 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](/landing/ras-powershell-api-guide/parallels-ras-powershell-admin-module/commands/get-rastunnelingpolicy.md)
* [Set-RASTunnelingPolicy](/landing/ras-powershell-api-guide/parallels-ras-powershell-admin-module/commands/set-rastunnelingpolicy.md)
* [Remove-RASTunnelingPolicy](/landing/ras-powershell-api-guide/parallels-ras-powershell-admin-module/commands/remove-rastunnelingpolicy.md)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.parallels.com/landing/ras-powershell-api-guide/parallels-ras-powershell-admin-module/commands/new-rastunnelingpolicy.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
