-
September 28 2011, 11:34
- Компьютеры
- 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» — название сетевого соединения от которого получаем интернет(интернет внешний интерфес). Его можно посмотреть и скопировать в сетевых подключениях.
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. Скопировано отсюда
- Remove From My Forums
-
Question
-
Hello,
How to configure NAT in windows7 ?
query:
I have a virtual ethernet interface(Local Area Connection 3, i.e.tap — with a proper driver to manage it), whose IP address is assigned manually (static) 10.0.0.1/24 with subnet 255.255.255.0. I need to route traffic initiated from tap interface to physical
interface(Local Area Connection — connected with internet). In windows XP the same can be accomplish using
«netsh routing ip nat» which do NAT and unNAT for the traffic of tap network(10.0.0.0 — 10.0.0.255). But in windows 7 the netsh routing ip section is missing.Steps I used on windows-XP:
1) HKEY_LOCAL_MACHINESYSTEMCurrentControlSetservicesTcpipParameters and change value of Key
“IP Enable Router to 1” from 0.
2)
net stop remoteaccess
netsh routing ip nat install
netsh routing ip nat add interface «Internet-NIC» full
netsh routing ip nat add interface «TAP-NIC» private
net start remoteaccess
Can anyone help me out on how to accomplish the same in windows 7 ?
Answers
-
The Windows client OS does not support NAT directly — only the server OS does through RRAS. The client OS implements ICS (and has done since Win98SE). I have never tried to implement it using netsh commands.
Bill
-
Proposed as answer by
Thursday, July 25, 2013 3:02 PM
-
Marked as answer by
Ronex
Monday, June 2, 2014 6:55 AM
-
Proposed as answer by
Содержание
- Netsh routing ip nat install не найдена windows 7
- Netsh routing ip nat install не найдена windows 7
- Netsh routing ip nat install не найдена windows 7
- Netsh routing ip nat install не найдена windows 7
- 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
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.
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
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
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.
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
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
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.
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
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
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.
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
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
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.
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
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.
Источник
- Remove From My Forums
-
Question
-
Hello,
How to configure NAT in windows7 ?
query:
I have a virtual ethernet interface(Local Area Connection 3, i.e.tap — with a proper driver to manage it), whose IP address is assigned manually (static) 10.0.0.1/24 with subnet 255.255.255.0. I need to route traffic initiated from tap interface to physical
interface(Local Area Connection — connected with internet). In windows XP the same can be accomplish using
«netsh routing ip nat» which do NAT and unNAT for the traffic of tap network(10.0.0.0 — 10.0.0.255). But in windows 7 the netsh routing ip section is missing.Steps I used on windows-XP:
1) HKEY_LOCAL_MACHINESYSTEMCurrentControlSetservicesTcpipParameters and change value of Key
“IP Enable Router to 1” from 0.
2)
net stop remoteaccess
netsh routing ip nat install
netsh routing ip nat add interface «Internet-NIC» full
netsh routing ip nat add interface «TAP-NIC» private
net start remoteaccess
Can anyone help me out on how to accomplish the same in windows 7 ?
Answers
-
The Windows client OS does not support NAT directly — only the server OS does through RRAS. The client OS implements ICS (and has done since Win98SE). I have never tried to implement it using netsh commands.
Bill
-
Proposed as answer by
Thursday, July 25, 2013 3:02 PM
-
Marked as answer by
Ronex
Monday, June 2, 2014 6:55 AM
-
Proposed as answer by
- Remove From My Forums
-
Question
-
Hello,
How to configure NAT in windows7 ?
query:
I have a virtual ethernet interface(Local Area Connection 3, i.e.tap — with a proper driver to manage it), whose IP address is assigned manually (static) 10.0.0.1/24 with subnet 255.255.255.0. I need to route traffic initiated from tap interface to physical
interface(Local Area Connection — connected with internet). In windows XP the same can be accomplish using
«netsh routing ip nat» which do NAT and unNAT for the traffic of tap network(10.0.0.0 — 10.0.0.255). But in windows 7 the netsh routing ip section is missing.Steps I used on windows-XP:
1) HKEY_LOCAL_MACHINESYSTEMCurrentControlSetservicesTcpipParameters and change value of Key
“IP Enable Router to 1” from 0.
2)
net stop remoteaccess
netsh routing ip nat install
netsh routing ip nat add interface «Internet-NIC» full
netsh routing ip nat add interface «TAP-NIC» private
net start remoteaccess
Can anyone help me out on how to accomplish the same in windows 7 ?
Answers
-
The Windows client OS does not support NAT directly — only the server OS does through RRAS. The client OS implements ICS (and has done since Win98SE). I have never tried to implement it using netsh commands.
Bill
-
Proposed as answer by
Thursday, July 25, 2013 3:02 PM
-
Marked as answer by
Ronex
Monday, June 2, 2014 6:55 AM
-
Proposed as answer by
- 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
-
Marked as answer by