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 Service Configuration

    in Windows 10 Gaming
    Routing and Remote Access Service Configuration: Hi all ,After configuring a RRAS service on 2019 windows server, I was able to have an internet access from the server, but I am not able to ping any of RRAS clients even though I can ping the server IP, not able also to reach any local service, The IPv4 router checkbox is...
  3. Routing and Remote Access Service Configuration

    in Windows 10 Software and Apps
    Routing and Remote Access Service Configuration: Hi all ,After configuring a RRAS service on 2019 windows server, I was able to have an internet access from the server, but I am not able to ping any of RRAS clients even though I can ping the server IP, not able also to reach any local service, The IPv4 router checkbox is...
  4. Routing and Remote Access Service Configuration

    in Windows 10 Network and Sharing
    Routing and Remote Access Service Configuration: Hi all ,After configuring a RRAS service on 2019 windows server, I was able to have an internet access from the server, but I am not able to ping any of RRAS clients even though I can ping the server IP, not able also to reach any local service, The IPv4 router checkbox is...
  5. Two Different Domains, Routing Rules

    in Windows 10 Software and Apps
    Two Different Domains, Routing Rules: Hi -We have *** Email address is removed for privacy *** and *** Email address is removed for privacy ***. def.com domain is automatically forced in as an alias. What exchange routing rules can I add in to redirect emails to def.com to a different employee? I have tried using...
  6. Two Different Domains, Routing Rules

    in Windows 10 Gaming
    Two Different Domains, Routing Rules: Hi -We have *** Email address is removed for privacy *** and *** Email address is removed for privacy ***. def.com domain is automatically forced in as an alias. What exchange routing rules can I add in to redirect emails to def.com to a different employee? I have tried using...
  7. 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...
  8. 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...
  9. 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...
  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