N
N
Nicholas2015-12-14 19:37:43
iptables
Nicholas, 2015-12-14 19:37:43

How to allow network requests to only one IP in ubuntu?

Interested in the implementation on iptables
I need all the traffic to go through the VPN and cut everything that suddenly bypasses immediately!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Burov, 2015-12-14
@BuriK666

iptables -F OUTPUT
iptables -P OUTPUT DROP
iptables -I OUTPUT --dst xxx.xxx.xxx.xxx-j ACCEPT

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question