Windows 10: Script to add a rule for Routing and Remote Access

Discus and support Script to add a rule for Routing and Remote Access in AntiVirus, Firewalls and System Security to solve the problem; From Firewall I want to add a rule - Routing and Remote Access. This rule can be added manually, but I want to add it from the command prompt. I am... Discussion in 'AntiVirus, Firewalls and System Security' started by kinderu81, Mar 7, 2021.

  1. kinderu81 Win User

    Script to add a rule for Routing and Remote Access


    • From Firewall I want to add a rule - Routing and Remote Access.
      This rule can be added manually, but I want to add it from the command prompt.
      I am using Windows 10 Pro 20H2.
      To add manualy, open Control Panel -> Windows Defender Firewall -> Advanced Settings ->
      -> Inbound Rules or Outbound Rules -> New Rule -> Predefined -> from drop down list choose Routing and Remote Access ->
      -> Next -> Check all checkbox
      Routing and Remote Access (PPTP-In),
      Routing and Remote Access (L2TP-In),
      Routing and Remote Access (GRE-In) -> Next... Next - see print screen.
      How to add from CMD ?


    :)
     
    kinderu81, Mar 7, 2021
    #1
  2. T0mmy1977 Win User

    Cannot Start the Routing and Remote Access Service

    I get the error below and the event below logged when I try to start the RRAS service. Any ideas?


    Script to add a rule for Routing and Remote Access [​IMG]



    Script to add a rule for Routing and Remote Access [​IMG]
     
    T0mmy1977, Mar 7, 2021
    #2
  3. RuskinF Win User
    Remote Access

    1. Follow these steps to disallow remote access to your PC completely:
    2. 1. Type “remote settings” into the Cortana search box. Select “Allow remote access to your computer”. This may seem counter-intuitive, but this opens the Control panel
      dialog for Remote System Properties.
    3. 2. Check “Don't Allow Remote Connections” to this Computer. You've now disabled remote access to your computer.

    Try these two steps and tell us if your issue gets solved. If it does not then your PC may be infected. Use a Good antivirus to remove the infection from your device completely.
     
    RuskinF, Mar 7, 2021
    #3
  4. DeFacto Win User

    Script to add a rule for Routing and Remote Access

    Route to the remote station with win route table

    Hello,

    I have three pc's:
    - Local PC with an ip 192.168.1.100
    - Remote PC_1 with an ip 192.168.2.100
    - Remote PC_2 with an ip 192.168.2.101
    I would like to access remote pc_2 via remote pc_1. On the local pc and remote pc_1 i have enabled routing in the registry. Windows ip configuration shows as follow:
    Windows IP Configuration

    Host Name . . . . . . . . . . . . : (PC name)
    Primary Dns Suffix . . . . . . . :
    Node Type . . . . . . . . . . . . : Hybrid
    IP Routing Enabled. . . . . . . . : Yes
    WINS Proxy Enabled. . . . . . . . : No
    I have installed teamviewer on local pc and remote pc_1 and a vpn adapters of the teamviewer and established vpn connection betwean local pc and remote pc_1.
    On the local pc i have added a route to the route table:
    route add 192.168.2.0 MASK 255.255.255.0 (ip of the teamviewer vpn of the remote pc)
    Route was added successfully, i have route in the route table:
    Active Routes:
    Network Destination Netmask Gateway Interface Metric
    192.168.6.0 255.255.255.0 (remote vpn ip) (local vpn ip) 56
    Now from the local pc i can ping to the address 192.168.2.100:
    C:\Windows\system32>ping 192.168.6.253

    Pinging 192.168.2.100 with 32 bytes of data:
    Reply from 192.168.2.100: bytes=32 time=238ms TTL=128
    Reply from 192.168.2.100: bytes=32 time=107ms TTL=128
    Reply from 192.168.2.100: bytes=32 time=123ms TTL=128
    Reply from 192.168.2.100: bytes=32 time=108ms TTL=128

    Ping statistics for 192.168.2.100:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
    Approximate round trip times in milli-seconds:
    Minimum = 107ms, Maximum = 238ms, Average = 144ms
    I can also ping succesfully from the remote pc_1 to the remote pc_2, but when i try to ping from local pc to remote pc_2 - all packets are lost. Any help is highly appreaciated.
    Local pc is Windows 10 pro 1909 OS ver 19363.628. Firewalls, antivirus were temporary disabled while i did tests.
     
    DeFacto, Mar 7, 2021
    #4
Thema:

Script to add a rule for Routing and Remote Access

Loading...
  1. Script to add a rule for Routing and Remote Access - Similar Threads - Script add rule

  2. Routing and remote access services VPN problem.

    in Windows 10 Network and Sharing
    Routing and remote access services VPN problem.: Hi! I have a problem with my windows 10.. I try to create a incoming connection VPN and if a try i get that screen: [ATTACH] Sorry for the Hungarian but I'am Hungarian.. So thats screen says "The incoming connections depend on the routung and remote access sevice, that...
  3. Routing and Remote Access Automated CSV

    in Windows 10 Network and Sharing
    Routing and Remote Access Automated CSV: Hi all, I was wondering if I could get some help on this script that I have been working on. It's a small script and it works perfectly fine but the only issue I am having is getting the script to run by itself at a certain time. The server that this will be running on...
  4. Route to the remote station with win route table

    in Windows 10 Network and Sharing
    Route to the remote station with win route table: Hello, I have three pc's: - Local PC with an ip 192.168.1.100 - Remote PC_1 with an ip 192.168.2.100 - Remote PC_2 with an ip 192.168.2.101 I would like to access remote pc_2 via remote pc_1. On the local pc and remote pc_1 i have enabled routing in the registry. Windows ip...
  5. IPRIP was unable to add a route to the system route table

    in Windows 10 BSOD Crashes and Debugging
    IPRIP was unable to add a route to the system route table: IPRIP 29031 IPRIP was unable to add a route to the system route table. The data is the error code. System 10/15/2019 16:49:10 OS: Windows 10 Pro (64 bit) Build: 10.0.18362.175 Version: 1903 Is there a safe way to resolve this using PowerShell or not disrupting the user?...
  6. IPRIP was unable to add a route to the system route table. The data is the error code. -...

    in Windows 10 Network and Sharing
    IPRIP was unable to add a route to the system route table. The data is the error code. -...: OS: Windows 10 Pro (64 bit) Build: 10.0.10586.1176 Original message. "IPRIP Event 29031 System 10/07/2019 06:00:38 IPRIP was unable to add a route to the system route table. The data is the error code." Research: ServiceName: iprip Description: Listens for route...
  7. Remote Access

    in Windows 10 Customization
    Remote Access: How can I access my work computer (Windows 7) with my Dell Laptop that has Windows 10 home edition? https://answers.microsoft.com/en-us/windows/forum/all/remote-access/938eeb9d-70ff-46c4-a523-ec3837c6b5c1
  8. NTFS Access rules

    in User Accounts and Family Safety
    NTFS Access rules: Hello there. Today i want to try out the Win 10(not the first attempt) and have a question, on which i struck the last time i installed Win10. The thing is that the last time i tried Win10(was doing a clean setup, but the previous OS was Win7), all of the hard drives had...
  9. My VPN server has stopped working - Route and Remote Access error

    in Windows 10 Network and Sharing
    My VPN server has stopped working - Route and Remote Access error: Hi, Several months ago I set up a VPN server using Windows 10 (the method I used is described in this tutorial: How To Setup a VPN in Windows 10 - YouTube) This has been working fine until last week when I suddenly was unable to connect to my VPN server at home (I...
  10. Cannot Start the Routing and Remote Access Service

    in Windows 10 Performance & Maintenance
    Cannot Start the Routing and Remote Access Service: I get the error below and the event below logged when I try to start the RRAS service. Any ideas? [img] [img] 85661