unzip /mnt/c/Users/dmitr/Downloads/v2rayN-linux-64.zip
sudo apt install libice6 libsm6
./v2rayN &
curl -s https://api.ipify.org
Category Archives: Ubuntu
Running v2rayN client on WSL
Investigating Kerboros with kinit and Wireshark
On the domain controller:
nslookup -q=SRV _kerberos._tcp.other.local
Server: localhost
Address: 127.0.0.1
_kerberos._tcp.other.local SRV service location:
priority = 0
weight = 100
port = 88
svr hostname = 7-dev-de-dc16.other.local
7-dev-de-dc16.other.local internet address = 10.15.7.16
Squid unexpectedly stopped working
Squid unexpectedly stopped working with my home internet connection. I created a temporary user:
cd /etc/squid/
sudo htpasswd -B squid-password temp
sudo service squid reload
tried the following command
curl -v -x https://developernote.com:3129 --proxy-user temp:<password> -I https://api.ipify.org/
with another internet provider and it succeeded.
(more…)Reducing image size with command line
With the command below
mogrify -path . -strip -quality 50% *.jpg
I reduces the size of the following images
-rwxrwxrwx 1 def def 4.0M Apr 9 16:48 20250409_164822.jpg*
-rwxrwxrwx 1 def def 3.6M Apr 9 16:48 20250409_164831.jpg*
-rwxrwxrwx 1 def def 4.2M Apr 9 16:49 20250409_164902.jpg*
-rwxrwxrwx 1 def def 4.1M Apr 9 16:49 20250409_164910.jpg*
-rwxrwxrwx 1 def def 3.7M Apr 9 16:49 20250409_164917.jpg*
-rwxrwxrwx 1 def def 3.8M Apr 9 16:49 20250409_164924.jpg*
My first attempt to make a video call with PJSIP
Added video codecs to pjsip.conf
:
allow=h263p
allow=h263
allow=h264
allow=vp8
see full PJSIP configuration on GitHub.
core show channeltypes
Type Description Devicestate Presencestate Indications Transfer
------------- ------------- ------------- ------------- ------------- -------------
Recorder Bridge Media Recording Channel Driver no no yes no
Announcer Bridge Media Announcing Channel Driver no no yes no
USTM UNISTIM Channel Driver no no yes no
CBAnn Conference Bridge Announcing Channel no no yes no
CBRec Conference Bridge Recording Channel no no no no
PJSIP PJSIP Channel Driver yes no yes yes
AudioSocket AudioSocket Channel Driver no no no no
UnicastRTP Unicast RTP Media Channel Driver no no no no
MulticastRTP Multicast RTP Paging Channel Driver no no no no
IAX2 Inter Asterisk eXchange Driver (Ver 2) yes no yes yes
Local Local Proxy Channel Driver yes no yes no
Surrogate Surrogate channel used to pull channel f no no no no
----------
12 channel drivers registered.
Further investigation of Asterisk logs
Clients A and B are in Windows Sandboxes behind a router in a local network.
Client A:
Connection-specific DNS Suffix . : mshome.net
Link-local IPv6 Address . . . . . : fe80::db7a:bb9e:748a:f5a9%205
IPv4 Address. . . . . . . . . . . : 172.28.33.149
Subnet Mask . . . . . . . . . . . : 255.255.240.0
Default Gateway . . . . . . . . . : 172.28.32.1
Client B:
Connection-specific DNS Suffix . : mshome.net
Link-local IPv6 Address . . . . . : fe80::d607:36fe:46b0:b7dc%205
IPv4 Address. . . . . . . . . . . : 172.24.106.63
Subnet Mask . . . . . . . . . . . : 255.255.240.0
Default Gateway . . . . . . . . . : 172.24.96.1
Investigating Asterisk logs
Client C successfully call client A, but a call in the reverse direction fails. Client B successfully calls client A. See my previous post for my Asterisk configuration and clients.
IP addresses
IP address of client C is 176.15.165.103
and external IP address of client A is 91.122.37.167
. Server IP address is 172.236.29.157
.
172.28.33.149
is the local IP address of client A in Windows Sandbox (which external IP address is 91.122.37.167
):
C:\Users\WDAGUtilityAccount>ipconfig
Windows IP Configuration
Ethernet adapter Ethernet:
Connection-specific DNS Suffix . : mshome.net
Link-local IPv6 Address . . . . . : fe80::db7a:bb9e:748a:f5a9%205
IPv4 Address. . . . . . . . . . . : 172.28.33.149
Subnet Mask . . . . . . . . . . . : 255.255.240.0
Default Gateway . . . . . . . . . : 172.28.32.1
Further experimentations with PJSIP
I have two clients in Sandboxes on Windows 10 machines in a local network behind a router. First client is Linphone (client A) and second client is ZoiPer (client B), so the clients A and B are behind NAT. Also I have Linphone (client C), ZipPer (client D) and PortSIP (client F) on my Android mobile phone connected to the internet over 4G (so there is no NAT). The server is in the Docker container with default network configuration with all the ports mapped to the host.
My Asterisk configuration:
rtp.conf
:
[general]
rtpstart=10000
rtpend=10099
Running Asterisk 22 in a Docker container
I build and run Asterisk 22 in a Docker container on my Ubuntu 24.04 and it started to use 100% CPU and within a few hours consumed 100% of the disk space:
