Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
0 votes
1 answer
388 views

Docker blocks incoming connections [duplicate]

I have deployed a simple Flask server in a docker container. The app accepts connections on port 7005 and I have exposed the port 7005 on docker. I can see the docker is actively blocking connections ...
vettipayyan's user avatar
  • 3,278
0 votes
2 answers
1k views

iptables rules for jupyter notebook

having trouble with the iptables setting for jupyter notebook. with the following rules (assume notebook port 8888), jupyter notebook server would be launched successfully, but the actual notebook ...
leo's user avatar
  • 317
0 votes
1 answer
382 views

Accessing a socket coded using python TCPServer from outside (external machine)

I am making python server using TCPServer. Things that I can do are: 1. use curl from other terminal (curl 10.157.41.14:8444 --data "var1=10&var2=15") 2. use firefox in Xming and type "localhost:...
user1061392's user avatar
-1 votes
1 answer
1k views

How to block aceess to a HTTPS site using python-iptables

I want to implement a simple firewall using python which will block the access to a given list of sites. To do this I want to know how to block a specific site using python-iptables. For example how ...
AEla's user avatar
  • 173
2 votes
3 answers
3k views

Simple python server "connection refused" error

I found code for a very simple python server and client. When i first ran it I ran the server and client on the same machine in different terminals and it worked fine. However now I am running the ...
mdw7326's user avatar
  • 444
3 votes
0 answers
3k views

How to use the Python UFW (Uncomplicated Firewall) API in Ubuntu?

I use UFW on Ubuntu 12.04 to allow and deny IP addresses to ports from the command line. How can I use the API to do the following in Python? $ sudo ufw status $ sudo ufw allow from 207.46.232.182 ...
Tampa's user avatar
  • 78.1k
0 votes
1 answer
2k views

using python: how create firewall to block/drop network packets

Like the question stated... How to use python to block/drop packets from blacklisted host (MAC address) ... or more specific, ARP packets I know that *inux has utilities like "iptables" that can ...
osnkex's user avatar
  • 11