Windows 7 netsh routing команда не найдена

Ответили на вопрос 3 человека. Оцените лучшие ответы! И подпишитесь на вопрос, чтобы узнавать о появлении новых ответов.

dmlogv

Проблема — модем от «Билайн» ZTE MFxxx при каждом подключении к компу создает новое сетевое подключение, интернет по вайфаю раздается другим компьютерам, поэтому каждый приходится выполнять одно и то же — Правый клик по подключению -> Свойства -> Доступ -> Разрешить общий доступ через такой-то адаптер. Есть ли вариант автоматизации?


  • Вопрос задан

    более трёх лет назад

  • 9737 просмотров

Пригласить эксперта

"Вначале проверяем, что запущен сервис "Маршрутизация и удаленный доступ" ("Routing and Remote Access") и его режим запуска - "Авто". Исправляем в реестре ключ "IPEnableRouter" из ветки HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesTcpipParameters на 1, после чего перезагружаемся. Пишем в консоли:

netsh routing ip nat install
netsh routing ip nat show global
netsh routing ip nat add interface "<<<Имя внешнего подключения>>>" full
netsh routing ip nat add interface "<<<Имя внутреннего подключения>>>" private

Настройка NAT завершена. В качестве DNS указываем адрес, прописанный (либо назначенный провайдером) для внешнего интерфейса."

Взято отсюда
Статья про ХР, но, думаю, в Семерке тоже сработает (проверить не на чем)

так шару то на само подключение должно быть, а приложение вроде не удаляет созданное подключение.

Подключение создается заново, если модем подключается в другой порт / через usb-хаб. При всем другом подключение остается в памяти. Вы не меняете usb-порт?
Я для автоматизации всего процесса поставил Connectify (http://rutracker.org/forum/viewtopic.php?t=3747015), в нем все делается в два клика.


  • Показать ещё
    Загружается…

05 февр. 2023, в 02:41

3000 руб./за проект

05 февр. 2023, в 01:37

2000 руб./за проект

05 февр. 2023, в 01:09

20000 руб./за проект

Минуточку внимания

  • Remove From My Forums
  • Question

  • Hi there,

    I’m trying to figure out how to enable the «routing» context of the netsh tool, on a Windows 7 professional PC. I’ve tried to add traditional helpers from XP and WS2K (ipmontr.dll,ippromon.dll) but
    still doesn’t work. Is there a possible solution to make Windows 7 to work as a NAT router?

    Thanks!

Answers

  • Please note that this post is outside the scope of this forum.

    Windows 7 client SKUs do not contain Routing and Remote Access (which contain the full fledged NAT routing modules).  For this you would need to use the Server SKUs.  The client SKUs do contain Internet Connection Sharing (ICS) which is a simplified
    for of the RRAS NAT component.

    To enable this you can go to the Sharing tab of your Network adapters properties and select «Allow other network users to connect through this computer’s Internet connection.»  Once enabled, you can tweak a few more settings through the «Settings…»
    button.

    Hope this helps


    Dusty Harper [MSFT]
    Microsoft Corporation
    ————————————————————
    This posting is provided «AS IS», with NO warranties and confers NO rights
    ————————————————————

    • Marked as answer by

      Monday, January 31, 2011 6:58 PM

  • Remove From My Forums
  • Вопрос

  • В windows 2003 прекрасно работает команда такого вида:

    netsh routing ip set persistentroute dest=0.0.0.0 mask=0.0.0.0 nhop=85.93.130.1 name=»WAN1″ metric=1

    При попытке использовать её в Win 2012 выдается ошибка: «Команда не найдена»

    Запрос справки по команде «netsh routing /?» выдает «Команда routing /? не найдена.»

    Похоже, что команда routing из netsh изъята. Как быть?

Ответы

  • Должно помочь :)

    New-NetRoute –DestinationPrefix "10.0.0.0/24" –InterfaceIndex 12 –NextHop 192.168.0.1 -PolicyStore PersistentStore -RouteMetric 1

    http://technet.microsoft.com/en-us/library/hh826148.aspx

    Что касается netsh, то пора уходить от него (и вообще CMD-style) в сторону PS


    Roman Levchenko, MCITP, MCTS http://www.rlevchenko.com

    • Изменено

      12 марта 2014 г. 7:51
      PIC

    • Предложено в качестве ответа
      Vector BCOModerator
      12 марта 2014 г. 8:02
    • Помечено в качестве ответа
      Иван ПродановMicrosoft contingent staff, Moderator
      13 марта 2014 г. 6:08

Содержание

  1. Netsh routing ip nat install не найдена windows 7
  2. Netsh routing ip nat install не найдена windows 7
  3. Netsh routing ip nat install не найдена windows 7
  4. Netsh routing ip nat install не найдена windows 7
  5. Netsh routing ip nat install не найдена windows 7

Netsh routing ip nat install не найдена windows 7

You can have a look at the following link:

Thanks for sharing the information. But somehow it still doesn’t answer my query.

1) Here I need not to use Loopback adapter, tap adapter is already present, under network connection wizard.

2) It mentions use of ICS which has some restriction that it sets IP address for the other interface to 192.168.X.X (which is not feasible for portability of the source).

And If there is not any option for windows client operating system, could you share the command line steps for ICS(Internet Connection Sharing).

Preferably I was looking for the kind of setup which I done over XP which is provides NAT with not such a restriction

trans

trans

ICS can be used for NAT, but still it’s not well document how it can be done using command line. Although because of this I have to use graphical setting, It’d be much helpful if anyone can help me out in doing the same using command prompt.

trans

trans

Use NAT32 program, you can download this from http://v2.nat32.com/index.html

I found info someone has used TeamViewer VPN + NAT32 which is similar to your case.

1) Once you have properly installed winpfilter driver, you will see icons created on desktop

2) Run Nat32_CFG

3) Select Interface (Internet and Private)

4) You must NOT disturbe the TeamViewer VPN interface. Check highlighted boxes and apply

5) Only one main interface currently have just check box and apply

6) Do not enable DHCP on TeamViewer interface, this will create error

trans

trans

Hello everybody, I investigated a lot for this issue.
Establish a VPN session with TeamViewer to my home pc (remote side) and try to get access to this local network from my working place (local side).

I found an solution i never read anywhere before. Since Windows 7 has removed NAT option using netsh it is difficult to solve it with windows on board tools only.

— Install TeamViewer incl. VPN driver on both sides, activate unattended access on the remote side (my home pc). Use the button Show advanced options, and go to Advanced network options … Install VPN driver

— Optional: On the remote side (my home pc), the registry has to be modified. Start the registry editor for example by Regedt32, and browse to HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesTcpipParameters Set the parameter IPEnableRouter to “1”. Using console or batch as admin: reg add «HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesTcpipParameters» /v «IPEnableRouter» /t REG_DWORD /d «1». On my system it worked without this option, but according internet forums it seems to be recommended.

— Now create a remote desktop session to your home pc and start also the VPN connection within this TeamViewer session (Menu / Extras / VPN). I created a free TeamViewer account and added all pc’s to my computers to make the access to my machines easier.

— On remode side (my home pc) where WinPkFilter is installed start the Internet Gateway GUI of WinPkFilter: Start / Programms / WinpkFilter / Internet Gateway. Select (double click) the ethernet adapter of your local privat lan and set NAT Status to ‘Provider’. Select the TeamViewer VPN adapter and set NAT Status to ‘client’. Press ‘Start NAT’

— On local side (my working place) Add a route to the local side (my working place) to give access to several devices that have the same subnet, add the route like this:

route add mask 255.255.255.0
metric 1

Example (home lan ip range: 192.168.2.x / TeamViewer VPN IP in home pc (remote side) 7.37.88.245
route add 192.168.2.0 mask 255.255.255.0 7.37.88.245 metric 1

Do delete the route route delete 192.168.2.0

Now you should have access to your private home network. Good luck and have fun.

Источник

Netsh routing ip nat install не найдена windows 7

You can have a look at the following link:

Thanks for sharing the information. But somehow it still doesn’t answer my query.

1) Here I need not to use Loopback adapter, tap adapter is already present, under network connection wizard.

2) It mentions use of ICS which has some restriction that it sets IP address for the other interface to 192.168.X.X (which is not feasible for portability of the source).

And If there is not any option for windows client operating system, could you share the command line steps for ICS(Internet Connection Sharing).

Preferably I was looking for the kind of setup which I done over XP which is provides NAT with not such a restriction

trans

trans

ICS can be used for NAT, but still it’s not well document how it can be done using command line. Although because of this I have to use graphical setting, It’d be much helpful if anyone can help me out in doing the same using command prompt.

trans

trans

Use NAT32 program, you can download this from http://v2.nat32.com/index.html

I found info someone has used TeamViewer VPN + NAT32 which is similar to your case.

1) Once you have properly installed winpfilter driver, you will see icons created on desktop

2) Run Nat32_CFG

3) Select Interface (Internet and Private)

4) You must NOT disturbe the TeamViewer VPN interface. Check highlighted boxes and apply

5) Only one main interface currently have just check box and apply

6) Do not enable DHCP on TeamViewer interface, this will create error

trans

trans

Hello everybody, I investigated a lot for this issue.
Establish a VPN session with TeamViewer to my home pc (remote side) and try to get access to this local network from my working place (local side).

I found an solution i never read anywhere before. Since Windows 7 has removed NAT option using netsh it is difficult to solve it with windows on board tools only.

— Install TeamViewer incl. VPN driver on both sides, activate unattended access on the remote side (my home pc). Use the button Show advanced options, and go to Advanced network options … Install VPN driver

— Optional: On the remote side (my home pc), the registry has to be modified. Start the registry editor for example by Regedt32, and browse to HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesTcpipParameters Set the parameter IPEnableRouter to “1”. Using console or batch as admin: reg add «HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesTcpipParameters» /v «IPEnableRouter» /t REG_DWORD /d «1». On my system it worked without this option, but according internet forums it seems to be recommended.

— Now create a remote desktop session to your home pc and start also the VPN connection within this TeamViewer session (Menu / Extras / VPN). I created a free TeamViewer account and added all pc’s to my computers to make the access to my machines easier.

— On remode side (my home pc) where WinPkFilter is installed start the Internet Gateway GUI of WinPkFilter: Start / Programms / WinpkFilter / Internet Gateway. Select (double click) the ethernet adapter of your local privat lan and set NAT Status to ‘Provider’. Select the TeamViewer VPN adapter and set NAT Status to ‘client’. Press ‘Start NAT’

— On local side (my working place) Add a route to the local side (my working place) to give access to several devices that have the same subnet, add the route like this:

route add mask 255.255.255.0
metric 1

Example (home lan ip range: 192.168.2.x / TeamViewer VPN IP in home pc (remote side) 7.37.88.245
route add 192.168.2.0 mask 255.255.255.0 7.37.88.245 metric 1

Do delete the route route delete 192.168.2.0

Now you should have access to your private home network. Good luck and have fun.

Источник

Netsh routing ip nat install не найдена windows 7

You can have a look at the following link:

Thanks for sharing the information. But somehow it still doesn’t answer my query.

1) Here I need not to use Loopback adapter, tap adapter is already present, under network connection wizard.

2) It mentions use of ICS which has some restriction that it sets IP address for the other interface to 192.168.X.X (which is not feasible for portability of the source).

And If there is not any option for windows client operating system, could you share the command line steps for ICS(Internet Connection Sharing).

Preferably I was looking for the kind of setup which I done over XP which is provides NAT with not such a restriction

trans

trans

ICS can be used for NAT, but still it’s not well document how it can be done using command line. Although because of this I have to use graphical setting, It’d be much helpful if anyone can help me out in doing the same using command prompt.

trans

trans

Use NAT32 program, you can download this from http://v2.nat32.com/index.html

I found info someone has used TeamViewer VPN + NAT32 which is similar to your case.

1) Once you have properly installed winpfilter driver, you will see icons created on desktop

2) Run Nat32_CFG

3) Select Interface (Internet and Private)

4) You must NOT disturbe the TeamViewer VPN interface. Check highlighted boxes and apply

5) Only one main interface currently have just check box and apply

6) Do not enable DHCP on TeamViewer interface, this will create error

trans

trans

Hello everybody, I investigated a lot for this issue.
Establish a VPN session with TeamViewer to my home pc (remote side) and try to get access to this local network from my working place (local side).

I found an solution i never read anywhere before. Since Windows 7 has removed NAT option using netsh it is difficult to solve it with windows on board tools only.

— Install TeamViewer incl. VPN driver on both sides, activate unattended access on the remote side (my home pc). Use the button Show advanced options, and go to Advanced network options … Install VPN driver

— Optional: On the remote side (my home pc), the registry has to be modified. Start the registry editor for example by Regedt32, and browse to HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesTcpipParameters Set the parameter IPEnableRouter to “1”. Using console or batch as admin: reg add «HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesTcpipParameters» /v «IPEnableRouter» /t REG_DWORD /d «1». On my system it worked without this option, but according internet forums it seems to be recommended.

— Now create a remote desktop session to your home pc and start also the VPN connection within this TeamViewer session (Menu / Extras / VPN). I created a free TeamViewer account and added all pc’s to my computers to make the access to my machines easier.

— On remode side (my home pc) where WinPkFilter is installed start the Internet Gateway GUI of WinPkFilter: Start / Programms / WinpkFilter / Internet Gateway. Select (double click) the ethernet adapter of your local privat lan and set NAT Status to ‘Provider’. Select the TeamViewer VPN adapter and set NAT Status to ‘client’. Press ‘Start NAT’

— On local side (my working place) Add a route to the local side (my working place) to give access to several devices that have the same subnet, add the route like this:

route add mask 255.255.255.0
metric 1

Example (home lan ip range: 192.168.2.x / TeamViewer VPN IP in home pc (remote side) 7.37.88.245
route add 192.168.2.0 mask 255.255.255.0 7.37.88.245 metric 1

Do delete the route route delete 192.168.2.0

Now you should have access to your private home network. Good luck and have fun.

Источник

Netsh routing ip nat install не найдена windows 7

You can have a look at the following link:

Thanks for sharing the information. But somehow it still doesn’t answer my query.

1) Here I need not to use Loopback adapter, tap adapter is already present, under network connection wizard.

2) It mentions use of ICS which has some restriction that it sets IP address for the other interface to 192.168.X.X (which is not feasible for portability of the source).

And If there is not any option for windows client operating system, could you share the command line steps for ICS(Internet Connection Sharing).

Preferably I was looking for the kind of setup which I done over XP which is provides NAT with not such a restriction

trans

trans

ICS can be used for NAT, but still it’s not well document how it can be done using command line. Although because of this I have to use graphical setting, It’d be much helpful if anyone can help me out in doing the same using command prompt.

trans

trans

Use NAT32 program, you can download this from http://v2.nat32.com/index.html

I found info someone has used TeamViewer VPN + NAT32 which is similar to your case.

1) Once you have properly installed winpfilter driver, you will see icons created on desktop

2) Run Nat32_CFG

3) Select Interface (Internet and Private)

4) You must NOT disturbe the TeamViewer VPN interface. Check highlighted boxes and apply

5) Only one main interface currently have just check box and apply

6) Do not enable DHCP on TeamViewer interface, this will create error

trans

trans

Hello everybody, I investigated a lot for this issue.
Establish a VPN session with TeamViewer to my home pc (remote side) and try to get access to this local network from my working place (local side).

I found an solution i never read anywhere before. Since Windows 7 has removed NAT option using netsh it is difficult to solve it with windows on board tools only.

— Install TeamViewer incl. VPN driver on both sides, activate unattended access on the remote side (my home pc). Use the button Show advanced options, and go to Advanced network options … Install VPN driver

— Optional: On the remote side (my home pc), the registry has to be modified. Start the registry editor for example by Regedt32, and browse to HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesTcpipParameters Set the parameter IPEnableRouter to “1”. Using console or batch as admin: reg add «HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesTcpipParameters» /v «IPEnableRouter» /t REG_DWORD /d «1». On my system it worked without this option, but according internet forums it seems to be recommended.

— Now create a remote desktop session to your home pc and start also the VPN connection within this TeamViewer session (Menu / Extras / VPN). I created a free TeamViewer account and added all pc’s to my computers to make the access to my machines easier.

— On remode side (my home pc) where WinPkFilter is installed start the Internet Gateway GUI of WinPkFilter: Start / Programms / WinpkFilter / Internet Gateway. Select (double click) the ethernet adapter of your local privat lan and set NAT Status to ‘Provider’. Select the TeamViewer VPN adapter and set NAT Status to ‘client’. Press ‘Start NAT’

— On local side (my working place) Add a route to the local side (my working place) to give access to several devices that have the same subnet, add the route like this:

route add mask 255.255.255.0
metric 1

Example (home lan ip range: 192.168.2.x / TeamViewer VPN IP in home pc (remote side) 7.37.88.245
route add 192.168.2.0 mask 255.255.255.0 7.37.88.245 metric 1

Do delete the route route delete 192.168.2.0

Now you should have access to your private home network. Good luck and have fun.

Источник

Netsh routing ip nat install не найдена windows 7

You can have a look at the following link:

Thanks for sharing the information. But somehow it still doesn’t answer my query.

1) Here I need not to use Loopback adapter, tap adapter is already present, under network connection wizard.

2) It mentions use of ICS which has some restriction that it sets IP address for the other interface to 192.168.X.X (which is not feasible for portability of the source).

And If there is not any option for windows client operating system, could you share the command line steps for ICS(Internet Connection Sharing).

Preferably I was looking for the kind of setup which I done over XP which is provides NAT with not such a restriction

trans

trans

ICS can be used for NAT, but still it’s not well document how it can be done using command line. Although because of this I have to use graphical setting, It’d be much helpful if anyone can help me out in doing the same using command prompt.

trans

trans

Use NAT32 program, you can download this from http://v2.nat32.com/index.html

I found info someone has used TeamViewer VPN + NAT32 which is similar to your case.

1) Once you have properly installed winpfilter driver, you will see icons created on desktop

2) Run Nat32_CFG

3) Select Interface (Internet and Private)

4) You must NOT disturbe the TeamViewer VPN interface. Check highlighted boxes and apply

5) Only one main interface currently have just check box and apply

6) Do not enable DHCP on TeamViewer interface, this will create error

trans

trans

Hello everybody, I investigated a lot for this issue.
Establish a VPN session with TeamViewer to my home pc (remote side) and try to get access to this local network from my working place (local side).

I found an solution i never read anywhere before. Since Windows 7 has removed NAT option using netsh it is difficult to solve it with windows on board tools only.

— Install TeamViewer incl. VPN driver on both sides, activate unattended access on the remote side (my home pc). Use the button Show advanced options, and go to Advanced network options … Install VPN driver

— Optional: On the remote side (my home pc), the registry has to be modified. Start the registry editor for example by Regedt32, and browse to HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesTcpipParameters Set the parameter IPEnableRouter to “1”. Using console or batch as admin: reg add «HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesTcpipParameters» /v «IPEnableRouter» /t REG_DWORD /d «1». On my system it worked without this option, but according internet forums it seems to be recommended.

— Now create a remote desktop session to your home pc and start also the VPN connection within this TeamViewer session (Menu / Extras / VPN). I created a free TeamViewer account and added all pc’s to my computers to make the access to my machines easier.

— On remode side (my home pc) where WinPkFilter is installed start the Internet Gateway GUI of WinPkFilter: Start / Programms / WinpkFilter / Internet Gateway. Select (double click) the ethernet adapter of your local privat lan and set NAT Status to ‘Provider’. Select the TeamViewer VPN adapter and set NAT Status to ‘client’. Press ‘Start NAT’

— On local side (my working place) Add a route to the local side (my working place) to give access to several devices that have the same subnet, add the route like this:

route add mask 255.255.255.0
metric 1

Example (home lan ip range: 192.168.2.x / TeamViewer VPN IP in home pc (remote side) 7.37.88.245
route add 192.168.2.0 mask 255.255.255.0 7.37.88.245 metric 1

Do delete the route route delete 192.168.2.0

Now you should have access to your private home network. Good luck and have fun.

Источник

September 28 2011, 11:34

Category:

  • Компьютеры
  • Cancel

настройка NAT Windows 7
Итак. У нас есть комп, на котором есть интернет (не через прокси разумеется). Мы хотим с этого компа инет раздать по WiFi, BlueTooth или просто в сеть, подключенную ко второй сетевухе.
Что надо сделать:
1) проверяем что запущен сервис «Маршрутизация и удалённый доступ» («Routing and Remote Access»), и его режим запуска — «Авто».(ПКМ на Мой компьютер  -Управление — Службы — Маршрутизация и удалённый доступ(включить автоматическое включение)
2) идём в реестр и ставим в еденичку ключ «IPEnableRouter» из ветки HKEY_LOCAL_MACHINESYSTEM CurrentControlSetServicesTcpipParameters
3) ребутим комп
4) открываем консоль
5) netsh routing ip nat install
6) netsh routing ip nat show global
если в ответ видим «NAT должен быть установлен первым» — ребутимся, если нет — идём дальше.
7) netsh routing ip nat add interface «Internet connection» full
где «Internet connection» — название сетевого соединения от которого получаем интернет(интернет внешний интерфес). Его можно посмотреть и скопировать в сетевых подключениях.
8) netsh routing ip nat add interface «Local Area Connection» private
где «Local Area Connection» — название сетевого соединения на которое раздаём интернет(внутренний интерфейс). Его так же можно посмотреть и скопировать в сетевых подключениях.( а тут вайфай сединение  есле раздаем по вайфай)

Настройка NAT завершена. Теперь несколько слов о настройке сети.
Важно чтобы ip-адерса внешнего и внутреннего интерфейса были в разных подсетях. Т.е. если внешний идёт например к ADSL роутеру и имеет адрес и маску 192.168.1.2/255.255.255.0 и адрес шлюза например 192.168.1.1, то внутренний интерфейс можно сделать таким: 192.168.3.1/255.255.255.0 адрес шлюза не указываем.
Компы в подсети, подключённой к внутреннему интерфейсу настраиваем так:
192.168.3.2/255.255.255.0
192.168.3.3/255.255.255.0
192.168.3.4/255.255.255.0 и так далее. Для них всех шлюз — 192.168.3.1, в качестве днс указываем адрес днс, прописанный(либо назначенный провайдером) для внешнего интерфейса. Посмотреть можно так — «Сетевый подключения» — пр. кн. на внешнем сетевом интерфейсе — «Состояние» -«Поддержка» — «Подробности». Либо выполнив в консоли комманду ipconfig /all

Вот как-то так. У меня по этой схеме работает
Интернет -> ADSL-Router -(Ethernet)> Настольный комп с настроенным NAT -(BlueTooth PAN)> КПК

—————————————————-

«Local Area Connection»: 192.168.0.0/255.255.255.0
«Local Area Connection 2»: Интернет

Если доступ из внутренней сети в интернет осуществляется с помощью Internet Connection Sharing (а не Routing and Remote Access), то нужно отключить первое.

После этого выполнить:

netsh routing ip nat install
netsh routing ip nat add int «Local Area Connection» private
netsh routing ip nat add int «Local Area Connection 2» full
netsh routing ip nat add portmapping «Local Area Connection 2» tcp <ваш.внешний.ip.адрес> 6112 192.168.0.3 6112
sc config RemoteAccess start= auto
net start RemoteAccess

Должно работать.
P.S. http://technet.microsoft.com/en-gb/library/bb490945.aspx#EGAA
P.S.S. Скопировано отсюда

  1. Поднимаем VPN на Windows 7 из коробки:

    Далее коннектимся. Законнектились. Теперь весь трафик туннелируется через VPN. А мне нужно сделать так, чтобы после коннекта туннелировался трафик только адресованый на специальный destination IP (мой специальный сервер), а все остальное шло напрямую. route add курил, но пока не понял, как «отменить все кроме», да и вообще, не дружон я с командлайном ^_^ Помогите пожалуйста :)


  2. rmn

    rmn

    Well-Known Member

    Публикаций:

    0

    Регистрация:
    23 ноя 2004
    Сообщения:
    2.176

    Изменить default route (0.0.0.0) на шлюз твоего провайдера и добавить маршрут на твой специальный сервер через второй конец впн-туннеля.

  3. VPN не законнекчен: (отсортировано по метрике)

    [​IMG]

    VPN законнекчен: (красным зачеркнут почти мой внешний IP, почти — потому что отличается на одну цифру в последнем октете)

    [​IMG]

    То есть роуты добавляются и удаляются автоматически при коннекте и дисконнекте. IP интерфейса VPN кстати выдается из какого-то диапазона, то есть почти всегда разный. Что тут удалить, что добавить? :)


  4. rmn

    rmn

    Well-Known Member

    Публикаций:

    0

    Регистрация:
    23 ноя 2004
    Сообщения:
    2.176

    1. route delete 0.0.0.0/0 10.2.154.228
    2. route add x.x.x.x/32 10.2.154.228

    Это типа псевдокод, подрихтуй напильником в соответствии с route /?

  5. The route deletion failed: Element not found. Последний параметр поставил текущий IP VPN-интерфейса.


  6. rmn

    rmn

    Well-Known Member

    Публикаций:

    0

    Регистрация:
    23 ноя 2004
    Сообщения:
    2.176

    Ты табличку проверь. У меня он тоже эту ошибку выдает, однако маршрут удаляет.


  7. rmn

    rmn

    Well-Known Member

    Публикаций:

    0

    Регистрация:
    23 ноя 2004
    Сообщения:
    2.176

    А вообще, в свойствах vpn-подключения можно отключить его как шлюз по умолчанию. Тогда нужно будет только маршрут на свой специальный сервер добавить.

  8. Да, вот так оказалось проще. Убрал дефолтный гейт, прописал роут на сервер, все заработало! Осталась последняя проблема: если отключить VPN и включить его заново, то роут не восстанавливается, приходится добавлять руками. А т.к. IP интерфейс VPN-а получает каждый раз разный, простым батником не обойтись. Тут можно как-то все автоматизировать?

  9. Пока что сделал так: отдельная прога запускает ipconfig, находит выданный IP VPN-интерфейса, и далее выполняет route add с ним. Костыли, но хотя бы в один клик. Может есть решение получше?

  10. Вот правильное решение, делается один раз, после реконнекта ничего делать не надо:

    1. Настраиваем подключение.
    2. Снимаем галку default gateway.
    3. Коннектимся.
    4. netsh interface ipv4 add route ip_сервера/32 interface=»Hide.me» store=persistent

    Роут запоминается навсегда, и мапится по имени VPN, а не по IP (который меняется). Всем спасибо за помощь :)

  11. должна быть еще галка add route to given network для сети vpn-интерфейса

    тогда давать команду на добавление маршрута не придется


WASM

Я
   Andreyyy

30.01.13 — 21:33

Оборудование:

Сервер с Kerio

Удаленная машина без белого IP, подключается к серверу VPN клиентом и получает свой внутренний IP в сетке VPN.

На удаленной машине второй сетевой интерфейс к которому подключено некое оборудование.

Задача:

С сервера по определенному порту достучаться до оборудования на втором сетевом интерфейсе удаленной машины.

Белый IP получить технически нет возможности.

Как можно решить такую задачу ?

Приветствуются в меру небесплатные решения.

   Andreyyy

1 — 30.01.13 — 23:56

Апну однако.

На мой взгляд (очень издалека) все довольно прозаично:

Взял в одну руку — переложил в другую и отдал.

Может все так просто, что даже и темы заводить не стоило ?

   Jump

2 — 31.01.13 — 00:14

Не совсем понятно.

Поясни куда конкретно надо попасть? На клиентской машине кто-то порт слушает, или в локальной сети клиентской машины есть железка которой надо постучаться в порт?

   Партизан

3 — 31.01.13 — 00:19

белый айпи в этом случае совершенно не нужен, все что нужно — на удаленной машине настроить port mapping

   Партизан

4 — 31.01.13 — 00:24

Что-то типа такого:

netsh routing ip nat install

netsh routing ip nat add interface EXT full

netsh routing ip nat add interface INT private

add portmapping name=»EXT» proto=TCP publicip=0.0.0.0 publicport=80 privateip=192.168.1.10 privateport=80

EXT и INT — соответственно названия внешнего и внутреннего интерфейса

И еще разрешить TCP/IP Forwarding

Найти ключ:

HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesTcpipParameters

Создать или изменить значение параметра

Value Name: IPEnableRouter

Value type: REG_DWORD

Value Data: 1

   Andreyyy

5 — 31.01.13 — 00:27

(2) Клиентская машина слушает порт на одном интерфейсе (Kerio VPN) и перенаправляет через другой (обычный сетевой, через который подключена к интернету).

(3) Если белый IP, то проброс делаю на роутере.

(4) Спасибо, попробую.

   Andreyyy

6 — 31.01.13 — 19:12

(4) Пытал у себя на Windows 7 x32, но не удалось побороть:

Не удается загрузить DLL модуля поддержки: IPMONTR.DLL.

Команда routing ip nat install не найдена.

Файл копировал из Server 2003, скачивал в инете, болт.

Кто пробовал запустить эту команду на Windows 7 ?

   Andreyyy

7 — 31.01.13 — 20:32

Поборол программой PortTunnel

  

Протон

8 — 02.02.13 — 09:44

(6) Это команда для юнихов.

TurboConf — расширение возможностей Конфигуратора 1С

ВНИМАНИЕ! Если вы потеряли окно ввода сообщения, нажмите Ctrl-F5 или Ctrl-R или кнопку «Обновить» в браузере.

Тема не обновлялась длительное время, и была помечена как архивная. Добавление сообщений невозможно.
Но вы можете создать новую ветку и вам обязательно ответят!
Каждый час на Волшебном форуме бывает более 2000 человек.

Понравилась статья? Поделить с друзьями:
  • Windows 7 needs to install the sha2 update
  • Windows 7 pro cis and ge for oem software скачать
  • Windows 7 needs to install the sha 2 update support
  • Windows 7 needs to install the sha 2 update nvidia
  • Windows 7 need to install the sha 2 update support