How to configure proxy in SynetoOS 5

Written By Christian Castagna (Administrator)

Updated at January 30th, 2025

→ Applies to: SynetoOS 5.x

 

Step 1. Connect to SynetoOS appliance via SSH as admin

ssh admin@<your_ip_address_or_hostname>

 

Step 2. Get root privileges

sudo su -

 

Step 3. Edit environment file

vi /etc/environment

Proxy configuration with credentials
Make sure to copy and paste the exact lines below (replace <//DOMAIN\\user>, <password> and <ip_proxy> with the correct information).

export http_proxy=http:<//DOMAIN\\user>:<password>@<ip_proxy>:8080
export https_proxy=http:<//DOMAIN\\user>:<password>@<ip_proxy>:8080
export HTTP_PROXY=http:<//DOMAIN\\user>:<password>@<ip_proxy>:8080
export HTTPS_PROXY=http:<//DOMAIN\\user>:<password>@<ip_proxy>:8080
export no_proxy=10.0.0.0/8,172.16.0.0/16,192.168.0.0/16,*.svc,127.0.0.0/8,localhost,127.0.0.1
export NO_PROXY=10.0.0.0/8,172.16.0.0/16,192.168.0.0/16,*.svc,127.0.0.0/8,localhost,127.0.0.1
export no_grpc_proxy=localhost,127.0.0.1
export NO_GRPC_PROXY=localhost,127.0.0.1


Proxy configuration without credentials
Make sure to copy and paste the exact lines below (replace <ip_proxy> with the correct information).

export http_proxy=http://<ip_proxy>:8080
export https_proxy=http://<ip_proxy>:8080
export HTTP_PROXY=http://<ip_proxy>:8080
export HTTPS_PROXY=http://<ip_proxy>:8080
export no_proxy=10.0.0.0/8,172.16.0.0/16,192.168.0.0/16,*.svc,127.0.0.0/8,localhost,127.0.0.1
export NO_PROXY=10.0.0.0/8,172.16.0.0/16,192.168.0.0/16,*.svc,127.0.0.0/8,localhost,127.0.0.1
export no_grpc_proxy=localhost,127.0.0.1
export NO_GRPC_PROXY=localhost,127.0.0.1

 

Step 4. Edit dnf.conf file

vi /etc/dnf/dnf.conf

Proxy configuration with credentials
Make sure to copy and paste the exact lines below (replace <ip_proxy>, <DOMAIN\user> and <password> with the correct information).

proxy=http://<ip_proxy>:8080/
proxy_username=<DOMAIN\user>
proxy_password=<password>
proxy_auth_method=basic


Proxy configuration without credentials
Make sure to copy and paste the exact lines below (replace <ip_proxy> with the correct information).

proxy=http://<ip_proxy>:8080/

 

Step 5. Edit override.conf file

vi /etc/systemd/system/containerd.service.d/override.conf

Proxy configuration with credentials
Make sure to copy and paste the exact lines below (replace <//DOMAIN\\user>, <password> and <ip_proxy> with the correct information).

[Service]
Environment="HTTP_PROXY=http:<//DOMAIN\\user>:<password>@<ip_proxy>:8080"
Environment="HTTPS_PROXY=http:<//DOMAIN\\user>:<password>@<ip_proxy>:8080"
Environment="NO_PROXY=10.0.0.0/8,172.16.0.0/16,192.168.0.0/16,*.svc,127.0.0.0/8,127.0.0.1,localhost,*.edge.local"
Environment="NO_GRPC_PROXY=10.0.0.0/8,172.16.0.0/16,192.168.0.0/16,*.svc,127.0.0.0/8,127.0.0.1,localhost,*.edge.local"


Proxy configuration without credentials
Make sure to copy and paste the exact lines below (replace <ip_proxy> with the correct information).

[Service]
Environment="HTTP_PROXY=http://<ip_proxy>:8080"
Environment="HTTPS_PROXY=http://<ip_proxy>:8080"
Environment="NO_PROXY=10.0.0.0/8,172.16.0.0/16,192.168.0.0/16,*.svc,127.0.0.0/8,127.0.0.1,localhost,*.edge.local"
Environment="NO_GRPC_PROXY=10.0.0.0/8,172.16.0.0/16,192.168.0.0/16,*.svc,127.0.0.0/8,127.0.0.1,localhost,*.edge.local"

 

Step 6. Edit 10-kubeadm.conf file

vi /lib/systemd/system/kubelet.service.d/10-kubeadm.conf

Proxy configuration with credentials
Make sure to copy and paste the exact lines below (replace <//DOMAIN\\user>, <password> and <ip_proxy> with the correct information).

[Service]
Environment="HTTP_PROXY=http:<//DOMAIN\\user>:<password>@<ip_proxy>:8080"
Environment="HTTPS_PROXY=http:<//DOMAIN\\user>:<password>@<ip_proxy>:8080"
Environment="NO_PROXY=10.0.0.0/8,172.16.0.0/16,192.168.0.0/16,*.svc,127.0.0.0/8,127.0.0.1,localhost,*.edge.local"
Environment="NO_GRPC_PROXY=10.0.0.0/8,172.16.0.0/16,192.168.0.0/16,*.svc,127.0.0.0/8,127.0.0.1,localhost,*.edge.local"


Proxy configuration without credentials
Make sure to copy and paste the exact lines below (replace <ip_proxy> with the correct information).

HTTP_PROXY=http://<ip_proxy>:8080
HTTPS_PROXY=http://<ip_proxy>:8080
NO_PROXY=10.0.0.0/8,172.16.0.0/16,192.168.0.0/16,*.svc,127.0.0.0/8,127.0.0.1,localhost,*.edge.local
NO_GRPC_PROXY=10.0.0.0/8,172.16.0.0/16,192.168.0.0/16,*.svc,127.0.0.0/8,127

 

Step 7. Restart the services

systemctl daemon-reload
systemctl restart containerd
systemctl restart kubelet