Source policy-based routing to couple of sit tunnels. Works only first one

At Ubuntu Server 18.04 I want to have this behavior: curl -6 –interface 2001:470:e09f::3 ifconfig.co/ip 2001:470:e09f::3 curl -6 –interface 2001:470:c160::4 ifconfig.co/ip 2001:470:c160::4 But, unfortunately, only first prefix works. My startup script: #!/bin/sh sysctl -w net.ipv6.conf.default.forwarding=1 sysctl -w net.ipv6.conf.all.forwarding=1 sysctl -w net.ipv6.ip_nonlocal_bind=1 modprobe ipv6 ## tunnel_0 ip tunnel add he-ipv6-0 mode sit remote 216.66.22.2 local 154.16.126.60…

Nginx : How to do dynamic path routing requests to single root directory with different country (geoip module)

How to do dynamic path routing requests to single root directory and url to /<country_zone>/<actual_url>/* . I am able to retrive $country_zone value which can be any of (in|uk|us|other) using geoip module. e.g Request => Response / => / / (with geoip country as US) => /us/ /path/ => /path /path/ (with geoip country as…

How to serve 2 different URL as single URL in Apache 2?

I have Apache2 as my reverse proxy server. I have two web servers 1. Node and 2. Tomcat. Configuration looks like this: NodeJS server <Location /abc> ProxyPass http://127.0.0.1:3000 ProxyPassReverse http://127.0.0.1:3000 </Location> Tomcat Server <Location /xyz> ProxyPass http://192.168.1.29:8080/xyz ProxyPassReverse http://192.168.1.29:8080/xyz </Location> I want to serve both requests from single domain and URL should not change. It…

unable to update file in apache using POST method

I want to update a file in apache server using POST method. I did the following things in virtual host conf file Alias /csp1 /opt/data/logs/csp <Directory /opt/data/logs/csp/> Options FollowSymLinks Order allow,deny Allow from all AllowOverride All Require all granted Require method POST GET </Directory> RewriteEngine On RewriteRule ^/csp_log.txt$ /csp1/csp_log.txt [PT,L] I am using the curl…