Установка прокси сервера на windows server

You can set up a personal proxy server and can use it for many purposes. This article will set up the proxy setup with the squid proxy on the windows server. In this guide, we will go over how to set up and configure a Squid Proxy on Windows Server.


Download & Install Squid Proxy

Download the Squid Proxy Installer from the following URL:

https://squid.diladele.com/#home

1. First, download the Squid Proxy application on your Windows server and open the .msi file to install Squid Proxy.

2. Once the Squid Setup window opens, click Next to begin the installation.

3. Next on the End-User License Agreement page, accept the terms and then click Next.

4. Then on the Destination Folder page, you can select the directory you want to install and once you are done click Next.

5. Then on the next page, click Install to begin the installation of Squid.

6. Once it’s done, you can close out of the setup window.


Allow Squid Port Through Firewall

Local network usage 3128 TCP port to connect through Squid Proxy. Let us first allow the 3128 TCP port in the firewall inbound rules.

1. Log in to your Windows server, then search and open Windows Firewall with Advanced Security.

2. Then navigate to Inbound Rules on the left-side menu.

3. Next click New Rule from the right-hand menu.

4. On the Rule Type page, select the button next to Port and click Next.

5. On Protocol and Ports, select TCP and select Specific local ports and enter 3128 then click Next.

Specifying the Squid Proxy port on the firewall inbound rule.

6. Next, click Allow the connection and click Next to move on.

7. In the Profile tab, you need to select the below options and check the boxes for Domain, Private, and Public then click Next to move on.

8. In the Name section, you can specify a name that is easily identifiable for the rule, then click Finish. We have successfully setup and configure a Squid Proxy on Windows Server.

Configure Squid Proxy

1. Configure Squid by following the steps below:

2. Add the code “acl localnet src” and “your local IPv4”. In this case, you can change 123.123.123.123 to your local IPv4. You can find your local IPv4 at https://whatismyipaddress.com/

Then save by pressing Ctrl + S

3. Open Services setting and restart the Squid for windows service

Use proxy on a client

1. Go to your client computer and enter the proxy that has been setted up.

2. Enter Proxy IP address and Port. Now you will be able to use your proxy on a client

Setup Microsoft Web Application Proxy (WAP) on Windows Server 2019/2022. In this post, we introduce Web application proxy, its advantages and working principles. After that, we move onto how to set up Microsoft Web Application Proxy on Windows Server running 2019 or 2022.

What is Microsoft Web Application Proxy (WAP)

Setup Microsoft Web Application Proxy (WAP) on Windows Server 2019/2022.

  • Primarily, WAP is intended to offer highly secure access to online services like Exchange and SharePoint without a VPN connection. By functioning as a reverse proxy, it accomplishes this by taking inbound requests from the internet and then forwarding them to the proper internal server.
  • Secondly, WAP is also an effective application for organizations that must offer protected access to web applications from external networks. Equally, it contributes to the security of internal networks by serving as a reverse proxy and offering secure authentication, authorization, encryption, and load balancing.

How Microsoft Web Application Proxy (WAP) Works

how web application proxy works

Mainly, Web Application Proxy (WAP) functions by providing web applications with reverse proxy functionality. In turn, this indicates that it serves as a gatekeeper for receiving requests and stands between the web and an internal network. Therefore, the following steps are used to break down how WAP operates:

  • Processing a request: An external user attempts to access a web application hosted on the internal network.
  • Authentication: WAP eliminates the requirement for each application to design its own authentication process by providing a safe, central location for user authentication.
  • Authorization: Following user authentication, WAP determines whether the user is permitted access to the requested resource. In more detail, it ensures that only users with authorized device access the business applications.
  • Encryption: Sensitive data is secured while being transmitted due to WAP’s ability to encrypt communication between the client and the internal network.
  • Balanced loading: Incoming requests get split among several internal servers using WAP, which boosts performance and helps to guarantee high availability.
  • Request transmission: The inbound request is forwarded by WAP to the proper internal server.

  • Response: The client receives the response through WAP once the internal server has processed the request and returned it.

Advantages of Microsoft Web Application Proxy (WAP)

For businesses that must enable secure remote access to web applications, Web Application Proxy (WAP) offers several advantages, such as:

  • Enhanced efficiency: Incoming requests are split among several internal servers using WAP, which boosts performance and helps to guarantee high availability. This makes it possible to maintain the responsiveness and accessibility of web applications for users even during periods of high traffic.
  • Data protection: WAP assists in the security of internal resources and the protection of sensitive data by serving as an intermediary between the internal network and the internet. To guarantee that only authenticated and authorized users access the internal network, WAP provides security authentication, authorization, and encryption.
  • Cost efficient: WAP assists enterprises in saving on the expense of building and maintaining VPN infrastructure by minimising the requirement for a VPN connection.

Setup Microsoft Web Application Proxy (WAP) on Windows Server 2019/2022

Follow these next steps to navigate how to set up Microsoft Web Application Proxy on a Windows server 2019 / 2022.

Prerequisites

  • A server running Windows 2019 or 2022
  • An administrator password is set up on your server.

Install Web Application Proxy

First, you need to install the Web Application Proxy server roles on your server. Follow the below guide: 

Step 1 – Log in to your Windows server and open the server manager. You should see the server manager dashboard on the following screen.

server manager dashboard

Step 2 – Click on the Add roles and features. You should see the Before your begin screen.

Step 3 – Press the Next button. Select installation type screen appears.

Step 4 – Select Role-based or feature-based installation and click on the Next button. This should bring the option to Select destination server screen.

Step 5 – Choose Select a server from the server pool and click on the Next button. Next screen you see is to Select server roles screen.

Step 6 – Select Remote Access and click on the Next button. 

Step 7 – Click on the Next button. 

Step 8 – Now, click on the Next button. Roles service screen should appear next.

Step 9 – Select Web Application Proxy and click on the Next button. Confirm installation screen next.

Step 10Install button appears, which you click to start the installation. Installation progress screen appears next.

Step 11 – Click on the Close button to exit the installation windows. Your web application proxy is now installed on your server. Please proceed to the next step.

Import the ADFS Certificate

Now, you need to copy the ADFS certificate from your ADFS server to your web application proxy server and then import it to your server.
Furthermore, follow the below steps to import the ADFS certificate.

Step 1 – Type mmc.exe in the search bar and open the Microsoft Management Console as shown below.

Setup Microsoft Web Application Proxy (WAP) on Windows Server 2019/2022 - mmc console

Step 2 – Next, right click on Personal -> Certificates then go to All Tasks -> Import. This opens the Certificate Import Wizard as shown below.

right click on personal certificate

certificate import welcome page

Step 3 – Click on the Next button. See Certificate Window Wizard next step window.

Setup Microsoft Web Application Proxy (WAP) on Windows Server 2019/2022 browse certificate

Step 4 – Browse the ADFS certificate file that you exported from your AD FS server and click on the Next button. Likewise, you will be asked to provide password for the private key as shown below.

provide private key password

Step 5 – Provide your private key password, check the box to make the key exportable then click on the Next button. 

Setup Microsoft Web Application Proxy (WAP) on Windows Server 2019/2022 certificate store

Step 6 – Select “Place all certificates in the following store” and then click on the Next button. 

certificate imported success

Step 7 – Click on the Finish button. Given that, you should see your imported certificate on the following screen.

Setup Microsoft Web Application Proxy (WAP) on Windows Server 2019/2022 mmc certificate

Configure Web Application Proxy

At this point, the Web Application Proxy is installed on your server. However, you need to perform post deployment configuration. Similarly, follow the below steps to configure Web Application Proxy.

Step 1 – Open the Server Manager and click Notifications. 

webapplication post deployment

Step 2 – Click on the Open the Web Application Proxy Wizard to start the configuration. 

Setup Microsoft Web Application Proxy (WAP) on Windows Server 2019/2022 web app proxy welcome page

Step 3 – Click on the Next button. Then, ADFS server configuration screen appears.

Setup Microsoft Web Application Proxy (WAP) on Windows Server 2019/2022 define adfs server

Step 4 – Provide your ADFS server name, username, password, and click on the Next button. Server certificate selection screen appears next.

select adfs certificate

Step 5 – Select your server certificate and click on the Next button. 

confirm wep configuration

Step 6 – Click on the Configure button. Once the WAP is configured successfully, you should see the following screen.

Setup Microsoft Web Application Proxy (WAP) on Windows Server 2019/2022 wap configured

Step 7 – Click on the Close button. Remote Access Management Console on the following screen appears next

remote access management screen

Publish Web Application

In effect, you need to publish the web application from the Remote Access Management Console dashboard.

Step 1 – Click on the Web Application Proxy in the Remote Access Management Console. 

web application proxy publish screen

Step 2 – Click on the Publish button. 

WAP publication welcome screen

Step 3 – Click on the Next button. Pre authentication screen apeears next.

WAP select preauthentication

Step 4 – Select Pass-through method and click on the Next button. Publishing settings screen appears next.

WAP publishing settings

Step 5 – Provide the name, external URL, external certificate, and backend server URL then click on the Next button. Confirmation screen appears next.

Setup Microsoft Web Application Proxy (WAP) on Windows Server 2019/2022 confirm WAP publication

Step 6 – Click on the Publish button. Once the Web Application has been published, you should see the following screen.

Setup Microsoft Web Application Proxy (WAP) on Windows Server 2019/2022 WAP published

Step 7 – Click on the Close button. In essence, you should see your newly published web application on the following screen.

verify published app

Thank you for reading Setup Microsoft Web Application Proxy (WAP) on Windows Server 2019/2022. We will conclude this article now. 

Setup Microsoft Web Application Proxy (WAP) on Windows Server 2019/2022 Conclusion

In summary, this post explained how to set up Microsoft Web Application Proxy on Windows Server 2019 or 2022. Organizations provide secure and effective remote access to web applications via WAP.  Lastly, WAP enables businesses to satisfy their demands while safeguarding sensitive data by enhancing security, performance, and remote access, as well as streamlining implementation and cutting expenses.

Setting up a proxy server on Windows Server 2022 is essential for enhancing network security, improving privacy, and controlling internet traffic within an organization. A proxy server acts as an intermediary between client devices and the internet, providing additional layers of security and management capabilities. This article will provide detailed, step-by-step instructions on how to configure a proxy server in Windows Server 2022. Additionally, we will explore how to set up a proxy through the Mozilla Firefox browser and discuss alternative methods for proxy configuration.

How to Configure a Proxy in the Windows Server 2022 Operating System

Before you start configuring, make sure you have a proxy server. If not, use the Proxy5.net service. This service provides proxies that support HTTP, HTTPS, and SOCKS5, making it easy to set up on Windows 11 and ensuring a reliable connection. Configuring a proxy server on Windows Server 2022 involves several steps. Here’s a comprehensive guide to help you through the process:

Step 1: Access Server Manager

  1. Click on the Start menu.
  2. Open Server Manager.

Step 2: Open Local Server Configuration

  1. In the Server Manager dashboard, select Local Server from the left-hand menu.
  2. In the Properties section, click on the IE Enhanced Security Configuration option and ensure it is set to Off for both Administrators and Users. This step ensures a smoother configuration process without interruptions.

Step 3: Access Internet Options

  1. Open Control Panel.
  2. Click on Network and Internet.
  3. Select Internet Options.

Step 4: Open the Connections Tab

  1. In the Internet Options window, select the Connections tab.
  2. Click on LAN Settings.

Step 5: Configure Proxy Settings

  1. In the LAN Settings window, check the box that says Use a proxy server for your LAN.
  2. Enter the IP address and Port of the proxy server you want to use. This information is typically provided by your network administrator or the proxy service you are using.
  3. If the proxy server requires a username and password, click on the Advanced button. Here, you can enter the necessary credentials.

Step 6: Bypass Proxy for Local Addresses

  1. Check the box that says Bypass proxy server for local addresses. This ensures that your computer will not use the proxy server for local network traffic.
  2. Click OK to save your settings.

Step 7: Apply and Save Settings

  1. After entering all the required information, click OK to close the LAN Settings window.
  2. Click Apply and then OK in the Internet Options window to save all changes.

Your Windows Server 2022 system should now be configured to use the specified proxy server.

How to Configure a Proxy on Windows Server 2022 via Browser

Proxy on Windows Server 2022 via Browser

Setting up a proxy server through Mozilla Firefox on Windows Server 2022 is straightforward and allows for individual browser-level proxy configuration. Here’s how to do it:

Step 1: Open Firefox and Access Settings

  1. Launch Mozilla Firefox.
  2. Click on the Menu button (three horizontal lines) in the upper-right corner.
  3. Select Options from the drop-down menu.

Step 2: Open Network Settings

  1. In the Options window, scroll down to the Network Settings section.
  2. Click on Settings next to Configure how Firefox connects to the internet.

Step 3: Configure Proxy Settings

  1. In the Connection Settings window, select Manual proxy configuration.
  2. Enter the HTTP Proxy and Port for the proxy server. If your proxy uses a different protocol (like HTTPS, FTP, or SOCKS), enter the details in the respective fields.
  3. If required, check the box for Use this proxy server for all protocols.

Step 4: No Proxy for Specific Addresses

  1. In the No Proxy for field, enter any addresses that you want to bypass the proxy. This can include local addresses or specific websites.
  2. Click OK to save the settings.

Step 5: Restart Firefox

  1. Close and reopen Mozilla Firefox to apply the new proxy settings.

Your Firefox browser on Windows Server 2022 is now configured to use the specified proxy server.

Alternative Methods for Configuring a Proxy on Windows Server 2022

Besides configuring a proxy through system settings or browsers, there are other methods to set up a proxy server on Windows Server 2022. Here are a few alternatives:

Method 1: Using Proxy Client Software

  1. ProxyCap: This software allows you to configure proxy settings for individual applications.
  2. FreeCap: A similar tool that helps redirect connections of specific programs through a proxy.

Method 2: Using a VPN with Proxy Capabilities

  1. NordVPN: Offers integrated proxy settings that can be configured within the VPN application.
  2. ExpressVPN: Another VPN service that provides proxy setup options.

Method 3: Browser Extensions

  1. Proxy SwitchyOmega: A Chrome and Firefox extension that simplifies proxy management within the browser.
  2. FoxyProxy: A popular extension for Firefox and Chrome, allowing advanced proxy configurations.

Method 4: Configuring Proxy through Command Line

  1. Open Command Prompt.
  2. Use thenetshcommand to configure proxy settings. Example:netsh winhttp set proxy proxy-server="http=proxyaddress:port".

Method 5: Using Group Policy Editor

  1. Open Group Policy Editor by typinggpedit.mscin the Run dialog.
  2. Navigate to User Configuration > Administrative Templates > Windows Components > Internet Explorer.
  3. Configure proxy settings in the Proxy Settings policy.

Among these methods, the easiest way for most users to set up a proxy on Windows Server 2022 is through the system settings or directly within the browser. Both methods provide straightforward, user-friendly interfaces and comprehensive options to ensure your internet traffic is routed through the desired proxy server. Whether you choose a manual system configuration or browser-specific setup, you’ll find a method that fits your needs and technical comfort level.

In summary, configuring a proxy server on Windows Server 2022 can be accomplished through various methods depending on your specific needs and technical expertise. Whether you opt for the built-in system settings, browser-specific configurations, or alternative methods such as proxy client software or command line configurations, each approach offers unique advantages and flexibility. This comprehensive guide aims to provide you with all the necessary information to successfully set up and manage a proxy server on Windows Server 2022, ensuring enhanced security, privacy, and control over your network traffic.

Shabbir Ahmad is a highly accomplished and renowned professional blogger, writer, and SEO expert who has made a name for himself in the digital marketing industry. He has been offering clients from all over the world exceptional services as the founder of Dive in SEO for more than five years.

Инструкция для установки на ОС Windows Server

Скачать дистрибутив можно с сайта https://3proxy.ru. Дистрибутив распространяется в виде архива zip, поэтому нужно просто распаковать содержимое архива в каталог, например C:\Program Files\3proxy.

Далее необходимо создать конфигурационный файл C:\Program Files\3proxy\bin64\3proxy.cfg, если нет готового шаблона можно просто скопировать файл C:\Program Files\3proxy\cfg\3proxy.cfg.example. Пример шаблона конфигурационного файла см. ниже.

Осталось зарегистрировать 3proxy.exe в качестве системной службы windows, для этого нужно запустить cmd.exe и выполнить следующие команды:

cd  C:\Program Files\3proxy
3proxy.exe  --install

после чего системная служба будет установлена и запущена. Остановка и перезапуск службы 3proxy.exe выполняется штатным средствами windows.

Далее остаётся только проверить работоспособность прокси и пользоваться.

Пример конфигурационного файла 3proxy.cfg для VPS с одним внешним IP 46.17.40.98 и DNS-сервером 77.88.8.1 с установленной авторизацией по имени/паролю:

nserver 77.88.8.1
nscache 65536

timeouts 1 5 30 60 180 1800 15 60
users USERNAME:CL:PASSWORD

service
log «C:\Program Files\3proxy\3proxy.log» D
logformat «- +_L%t.%. %N.%p %E %U %C:%c %R:%r %O %I %h %T»

rotate 7
auth strong
allow USERNAME
external 46.17.40.98
internal 46.17.40.98
deny * * 127.0.0.1
deny * * 46.17.40.98
#необходимо добавить строки «deny * * IP-адрес»
#для всех IP-адресов сервера,
#на котором работает 3proxy, иначе клиенты прокси смогут
#подключиться к указанным IP изнутри ОС, и таким образом
#необоснованно преодолеть сетевой фильтр внешней сети сервера
proxy -n
maxconn 32

Похожее

Setting Up a Proxy Server on Windows Server 2019

15

days ago · Updated

Setting Up a Proxy Server on Windows Server 2019

In today’s digital age, network security and performance are of utmost importance. One way to enhance both is by setting up a proxy server on Windows Server 2019. A proxy server acts as an intermediary between users and the internet, providing security, anonymity, and performance benefits.

Windows Server 2019 offers the capability to set up a proxy server seamlessly, and one popular type of proxy server is the SOCKS5 proxy. This article will guide you through the process of setting up a SOCKS5 proxy server on Windows Server 2019.

What is a Proxy Server?

Before diving into the specifics of setting up a proxy server on Windows Server 2019, let’s first understand what a proxy server is. A proxy server is a computer system or software that acts as an intermediary between a client and a web server. When a user requests a web page or file, the proxy server evaluates the request and forwards it to the targeted server. The server’s response is then sent back to the proxy server, which forwards it to the client.

The Benefits of Using a Proxy Server

There are several benefits to using a proxy server, including enhanced security, improved performance, and access control. By routing internet traffic through a proxy server, organizations can enforce security policies, filter web content, and monitor user activity. Additionally, a proxy server can cache frequently accessed web pages, reducing bandwidth usage and improving load times.

Setting Up a SOCKS5 Proxy Server on Windows Server 2019

To set up a SOCKS5 proxy server on Windows Server 2019, you can utilize third-party proxy server software designed for Windows. There are various proxy server software options available, both free and paid, that offer SOCKS5 support and easy configuration on Windows Server 2019.

One popular choice for setting up a SOCKS5 proxy server on Windows Server 2019 is to use proxy server software that provides a user-friendly interface for configuration. This software typically allows you to define the proxy server settings, including port number, authentication, and access control.

Proxy Server for Windows – Free and Paid Options

When it comes to proxy server software for Windows, there are both free and paid options to consider. Free proxy server software for Windows often comes with basic features and may be suitable for small-scale deployments. On the other hand, paid proxy server software for Windows offers advanced functionality, technical support, and scalability for larger networks.

Conclusion

In conclusion, setting up a proxy server on Windows Server 2019, specifically a SOCKS5 proxy server, can provide numerous benefits for network security and performance. By leveraging the capabilities of proxy server software designed for Windows, organizations can enhance their network infrastructure and protect their users’ online activities. Whether opting for a free or paid proxy server solution, Windows Server 2019 offers a robust platform for deploying and managing proxy servers to meet diverse organizational needs.

Понравилась статья? Поделить с друзьями:
0 0 голоса
Рейтинг статьи
Подписаться
Уведомить о
guest

0 комментариев
Старые
Новые Популярные
Межтекстовые Отзывы
Посмотреть все комментарии
  • Как поставить смайлики на windows 10
  • Обновление корневых сертификатов windows server 2008 r2
  • Выход в безопасный режим windows 10 при загрузке
  • Где находятся сетевые подключения в windows 10
  • Kms server windows 10 github