I am using Docker, base image is alpine. I have an application that sends HTTP GETs to a certain site but I have a limitation, after 50 requests I have to pay some amount per request and I want to avoid that. I will also impose some sort of hard stop from the application code but I wanted to know
Tag: networking
Trying to understand the amount of data transfered on wwan0?
I have linux system which is connected to the internet via an lte modem and I am communicating with it via modemManager. So I am having a little bit of difficulty in understanding the number of data bytes consumed. So according to modem manager. I am consuming 150 bytes of data to send a ping to opendns and I am
What is actual full form of DHCP? what does C stands for control or configuration
What is the actual full form of DHCP Dynamic Host Configuration Protocol or Dynamic Host Control Protocol Answer Dynamic Host Configuration Protocol check out more info here
Multiple ip on same interface in Docker container
Is that possible to have multiple IPs on eth0 in a Docker container? I would like having 5 IPs on eth0 in a Docker container interface. I am using “ip” utility. Executing ip address add 172.20.0.200/16 dev eth0 in the container give “Operation not permited. I tried manually log to the container as root user using “sudo exec -u root
How to resolve “setsockopt(3, SOL_SOCKET, SO_MARK, [10], 4) = -1 EPERM” Operation denied for none root users
I got two network interfaces (ethernet and wlan). Now I found a little script on github (https://github.com/Intika-Linux-Firewall/App-Route-Jail) which seems to allow me to route specific applications through the none default gateway to loadbalance the traffic a little bit. The script is using the following call: setsockopt(sd, SOL_SOCKET, SO_MARK, &mark, sizeof(mark)); As I found out via an strace I got: ‘-1
What configuration settings need to be done to fix Apache – MongoDB connectivity issues caused by SE Linux?
I have Apache 2.4 running on CentOS 7. SE Linux is enabled. The application uses Laravel (Lumen), and connects to MongoDB on another server. All our servers are in Google cloud.The applications fails to load the web page and lumen.log has errors like this lumen.ERROR: MongoDBDriverExceptionConnectionTimeoutException: No suitable servers found (serverSelectionTryOnceset): [Failed to resolve ‘mongo.***.***’] in /var/www/***/vendor/mongodb/mongodb/src/Collection.php:612 If SE Linux
My newly compiled kernel loses Networking in qemu
I compiled a kernel from source : make defconfig make kvmconfig make -j 4 After this , i use the resulting bzImage for my qemu command: qemu-system-x86_64 -hda debian.img -kernel bzImage -append “root=/dev/sda console=ttyS0” -nographic -m 4096 -smp 2 –enable-kvm -net user,hostfwd=tcp::10021-:22 -net nic It mounts, and I get a shell and everything, but it loses connectivity. In qemu, it
Why are 14 bytes of random data appended to a raw ethernet frame?
I’m sending a raw Ethernet frame to the loopback interface (Linux ubuntu 4.15.0-34-generic) with the following python code: (We use a custom Ethernet type 0x6666, but using the packet length (50) as specified by the Ethernet II frame format has the same outcome) I would expect to see a packet of length 14+50=64 bytes on the receiver (or in Wireshark).
eth0 (modem usb) and wlan0 (wifi module) interconnection
I’m trying to either make a bridge between eth0 (Usb modem) and wlan0 (Wifi Hotspot) or route all traffic from wlan0 to eth0. Procedure: Bridge won’t be successful if the interfaces already have an ip. Create the bridge and add the network. Start the wifi hotspot. At this point I can see the network with my phone. Assign the bridge
Simultaneous TCP termination and subsequent connect(): EADDRNOTAVAIL
My company releases a special TCP stack for special purposes and I’m tasked with implementing RFC793 compliant closing sequence. One of the unit tests has a server working on top of the special TCP stack talking to a normal Linux TCP client, and I’m running into some strange behaviour that I’m not sure whether is caused by programming error on