P
P
programmer01012018-09-08 21:55:04
ubuntu
programmer0101, 2018-09-08 21:55:04

Is it possible to set up a firewall on Ubuntu to allow certain applications access to certain subnets, and deny the rest?

What are the options?....................

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
Radjah, 2018-09-08
@Radjah

Look at namespaces. You can do a lot of things there.

A
ashv24, 2018-09-09
@ashv24

Try to run an application that is allowed to access the subnet from a specific user:
sudo -u the application
then in iptables:
sudo iptables -A OUTPUT -p tcp -m owner --uid-owner -o eth1 -j ACCEPT
only instead of -o eth1 you need as- then insert the required subnet, somewhere there may be an answer

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question