1,988 questions
1
vote
0
answers
23
views
How to add flags or marks to tcp net.connect() for later ip rule based routing
In my network I have multiple endpoints (devices) behind multiple vpn edge routers.
The edge routers have all different ip addresses.
The endpoints (devices) behind the egde routers have all the same ...
0
votes
0
answers
61
views
Rejected ports within `DOCKER-USER` are still visible from nmap as "filtered"
by default Docker will adjust iptables according to containers bound to the host... but in my case I don't want to have all exposed to internet. What I'm doing is modifying the chain DOCKER-USER so it ...
0
votes
0
answers
18
views
Cannot configure iptables to DROP traffic from everywhere [duplicate]
Given the iptables listing below, could anyone explain me why I'm still able to access from everywhere the service inside a docker container (IP 192.168.160.2:8050) which was supposed to be accessible ...
-2
votes
1
answer
149
views
DNAT translation in iptables for TCP connections [closed]
Suppose I have a DNAT rule which forwards TCP packets, destined for frontend IP, to a backend IP, which is a server say server1. This backend server1 is up and running and we have an already ...
0
votes
1
answer
157
views
Nomad with docker secure client ports strategy
After having tried several deployment strategies with Nomad docker containers with traefik on the front, I'm encountering the unresolved problem of ports on clients dynamically opened by services that ...
-1
votes
1
answer
104
views
Change port number while forwarding
In a larger firewall the following two lines allow me to connect from the internet to an SSH server running on the LAN host 172.27.255.4 and listening on ports 1046 and 22:
iptables -t nat -A ...
-1
votes
1
answer
219
views
How to add rule with IPTables.Net to iptables in real system with .NET 6 Web API
I have a .NET 6 Web API application and I want to edit my iptables rule in hosted system. (the system that Web API run on it)
I have rule like below
-A INPUT -m tcp --protocol tcp --source 2.2.2.2 --...
0
votes
0
answers
75
views
How to make IpTable Rules immutable in linux
I work on Linux and want to add rules to iptable. I want these rules to be immutable anyway (either changed or deleted). What should I do? Note that for me the rules that are running and kept in ...
0
votes
1
answer
83
views
VPC Peering Connection stopped working after installing Docker
I have two VPCs connected through Peering Connection. Each VPC has one EC2 instance. The Peering is working as I can ping from one EC2 instance to another using their private IP.
Now I need to have ...
0
votes
1
answer
474
views
Ununtu 20 + Rancher 1.6 — 80 port issue
I have two servers running Ubuntu 20.04 (fresh intallation), each has Docker installed. One of the servers (Server A) hosts Rancher 1.6 (rancher/server), while another one (Server B) has rancher/agent....
0
votes
1
answer
130
views
iptables INPUT rules not work as excpected
I have a Linux server which have docker installed. And I want to config INPUT chain to restrict some of trusted IP connection. So, I added some ACCEPT rules, and changed default POLICY of INPUT chain ...
2
votes
0
answers
1k
views
How to resolve 'getaddrinfo EAI_AGAIN' error when launching Docker containers on WSL? docker launched with 'sudo dockerd --iptables=false'
Docker containers on WSL not connected to the internet when launched with "sudo dockerd --iptables=false".
"npm ERR! request to https://registry.npmjs.org/rxjs/-/rxjs-6.6.7.tgz failed, ...
0
votes
1
answer
1k
views
How to restrict a Docker container to only access specific ports on the host and allow SSH traffic
I have a Docker container that needs to have access to certain ports on my host machine, but I want to restrict access to only those ports. Here's the command I use to run the container:
docker run -...
3
votes
0
answers
3k
views
Distributed training with torchrun on 3 nodes connection timeout
I have a problem with running a distributed training of pytorch using torchrun. first of all, this is the script I try to run:
import torch
from torch.utils.data.distributed import DistributedSampler
...
-1
votes
2
answers
1k
views
pods have no access to the internet [closed]
I have a freshly created kubernetes cluster set on 2 nodes, both nodes are open to the internet. I can curl, ping etc. any web. The problem appear when I try to do the same from pod. eg.
curl to ...
1
vote
0
answers
933
views
Cannot start docker service after fresh docker install
Problem
I just installed Docker on my arch machine with
sudo pacman -S docker
Just after that I tried to initialize Docker services with
sudo systemctl start docker.service
it is showing this error -...
0
votes
1
answer
388
views
'ipset add' from python script
I have existing ipset mylist, which I created with this command:
ipset create mylist hash:net
Now, I would like to be able, from my python script, to add IPs to this list. This is the command I ...
0
votes
1
answer
462
views
Container Listener not working on IP Address from server - Only works on IP from the Docker Network
SUMMARY
I am running a Zabbix Server container, but I am not being able to communicate on its listening port - Locally even.
OS / ENVIRONMENT / Used docker-compose files
This is the script I am ...
0
votes
1
answer
409
views
Create an iptable or BPF rule to only allow OpenVPN traffic to a connection port 1194 and drop all other traffic going to that port
How's it going everyone? I am trying to create either an iptable or a BPF rule which will only allow OpenVPN traffic over UDP to my VPN server on destination port 1194 in the hopes of preventing DDoS ...
0
votes
0
answers
51
views
How to read and append Iptables in docker container
I am unable to figure out how to read iptables in my docker container. I was handed over this by someone who I am not in contact with hence I am unable to figure this out. Any help would mean a lot ...
-1
votes
1
answer
85
views
can't figure out multidimensional arrays while trying to automate Rules insertion for my Unified Firewall
I am trying to automate Rules insertion for my Firewall... using Shell but i am kind of beginner with Shell Coding...
#!/usr/bin/env bash
if [[ ! $EUID -eq 0 && ! $USER -eq "root" ]]...
0
votes
0
answers
171
views
Remote Config iptables with Python Script
I knew there's lib called python-iptables.
but it seems that it only support on local machine?
What if i want to remote access a machine and config it's iptables?
Is there any better way to do this ...
0
votes
0
answers
253
views
Connection to server java.net.SocketException: Socket closed
I'm trying to connect to my google vps server, but constantly getting error :
java.net.SocketTimeoutException: timeout
java.net.SocketException: Socket closed
I've created system service on my server, ...
1
vote
0
answers
140
views
How the iptables command prints chains containing specific comments
I have a golang project with iptables package(utiliptables "k8s.io/kubernetes/pkg/util/iptables") for specific request conditions iptables rules and I expect to check periodically to delete ...
1
vote
1
answer
2k
views
Manage host iptables from docker container
I want to be able to see host iptables from inside a docker container. Not necessarily manage it, maybe a read-only iptables would be enough. I already gave --cap-add=NET_ADMIN and network mode is set ...