How to route selective traffic to a VPN tunnel in macOS?
TCP/IP 19-02-2024, 16:43 sobir 1 183 0
To route specific traffic through a VPN tunnel in macOS, follow these steps:
1. Create the Script File: Open Terminal and create a file named /etc/ppp/ip-up with the following command:
sudo nano /etc/ppp/ip-up
Then, paste the following content into the file:
#!/bin/sh
/sbin/route add SUBNET -interface $1
Replace SUBNET with the subnet you want to route through the VPN (e.g., 192.168.0.0/16).
2. Set Permissions: Make the script executable by running the following command:
sudo chmod 0755 /etc/ppp/ip-up
This command ensures that the script can be executed by the system.
Quick setup Apache Cassandra with a simple bash script....
ПодробнееQuick setup docker and docker-compose with a simple bash script....
ПодробнееУстановка и настройка первичного сервера доменных имен BIND....
ПодробнееQuick setup docker and docker compose with a simple bash script....
ПодробнееQuickly start a ClickHouse database server in a Docker container....
ПодробнееСоздание выделенной сети контейнерам Docker....
ПодробнееНовые комментарии
Салом, можно ещё создать файл в /etc/nginx/proxy_params, a потом добавить туда
![img](/templates/ITBlog/dleimages/noavatar.png)
Можно ещё так: 1. Создаем отдельную сеть для наших контейнеров docker network
![img](http://www.sysops.host/uploads/fotos/foto_1.png)
Спасибо за отзыв, написал отдельную статью по установке и настройке Ansible
![img](/templates/ITBlog/dleimages/noavatar.png)
Думаю в статье необходимо также описать процесс установки Ansible.
![img](http://www.sysops.host/uploads/fotos/foto_1.png)
Принудительное обновление сертификата: certbot certonly --force-renew -d
![img](http://www.sysops.host/uploads/fotos/foto_1.png)
Можно, но я решил описать процесс копирования ключей более подробно.
![img](http://www.sysops.host/uploads/fotos/foto_1.png)