G
G
gt4e32016-07-24 02:20:49
ubuntu
gt4e3, 2016-07-24 02:20:49

How to block access to a computer to all ports except 1194?

How to block access to a computer to all ports except 1194?

I don't understand much about this. if you can immediately either commands for the terminal, or the contents of rules.v4

I would be grateful!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
strelmax, 2016-07-24
@gt4e3

close all incoming ports
iptables -P INPUT DROP
open port 1194 for all incoming connections
iptables -A INPUT --dport 1194 -j ACCEPT

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question