blocking all traffic except whitelisted ip adresses
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
I need block all incoming and outcoming connections in firewall, except ip adresses i whitelist. I am currently on virtual machine using ubuntu.
I tried these commands from this site:
but i cant connect to this website, which is google, but ping works, i have no experience with linux, other websites don't work aswell.
iptables -A INPUT -s 172.217.23.206 -j ACCEPT
iptables -A OUTPUT -d 172.217.23.206 -j ACCEPT
iptables -P INPUT DROP
iptables -P OUTPUT DROP
ubuntu firewall
New contributor
add a comment |Â
up vote
0
down vote
favorite
I need block all incoming and outcoming connections in firewall, except ip adresses i whitelist. I am currently on virtual machine using ubuntu.
I tried these commands from this site:
but i cant connect to this website, which is google, but ping works, i have no experience with linux, other websites don't work aswell.
iptables -A INPUT -s 172.217.23.206 -j ACCEPT
iptables -A OUTPUT -d 172.217.23.206 -j ACCEPT
iptables -P INPUT DROP
iptables -P OUTPUT DROP
ubuntu firewall
New contributor
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I need block all incoming and outcoming connections in firewall, except ip adresses i whitelist. I am currently on virtual machine using ubuntu.
I tried these commands from this site:
but i cant connect to this website, which is google, but ping works, i have no experience with linux, other websites don't work aswell.
iptables -A INPUT -s 172.217.23.206 -j ACCEPT
iptables -A OUTPUT -d 172.217.23.206 -j ACCEPT
iptables -P INPUT DROP
iptables -P OUTPUT DROP
ubuntu firewall
New contributor
I need block all incoming and outcoming connections in firewall, except ip adresses i whitelist. I am currently on virtual machine using ubuntu.
I tried these commands from this site:
but i cant connect to this website, which is google, but ping works, i have no experience with linux, other websites don't work aswell.
iptables -A INPUT -s 172.217.23.206 -j ACCEPT
iptables -A OUTPUT -d 172.217.23.206 -j ACCEPT
iptables -P INPUT DROP
iptables -P OUTPUT DROP
ubuntu firewall
ubuntu firewall
New contributor
New contributor
New contributor
asked 5 mins ago
empleat
1
1
New contributor
New contributor
add a comment |Â
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
empleat is a new contributor. Be nice, and check out our Code of Conduct.
empleat is a new contributor. Be nice, and check out our Code of Conduct.
empleat is a new contributor. Be nice, and check out our Code of Conduct.
empleat is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f478735%2fblocking-all-traffic-except-whitelisted-ip-adresses%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password