You are not logged in.

#1 2016-02-26 13:06:59

marios
Member
Registered: 2016-02-26
Posts: 2

iptables rule

Hi!
I want block all internet on my arch desktop and allow connect to internet only virtualbox?
Does anybody have idea how do this using iptables?

Last edited by marios (2016-02-26 13:07:19)

Offline

#2 2016-02-26 13:09:56

ugjka
Member
From: Latvia
Registered: 2014-04-01
Posts: 1,875
Website

Re: iptables rule

Tell why you need this. http://xyproblem.info/


https://ugjka.net
"It is easier to fool people, than to convince them that they've been fooled" ~ Dr. Andrea Love

Offline

#3 2016-02-26 13:13:56

marios
Member
Registered: 2016-02-26
Posts: 2

Re: iptables rule

because I need this....

Offline

#4 2016-02-26 15:18:13

ugjka
Member
From: Latvia
Registered: 2014-04-01
Posts: 1,875
Website

Re: iptables rule

How can we help you if you won't even tell us what are you actually trying to achieve. Block all internet where? Allow what virtualbox? Give us the full story.


https://ugjka.net
"It is easier to fool people, than to convince them that they've been fooled" ~ Dr. Andrea Love

Offline

#5 2016-02-26 15:31:15

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,349

Re: iptables rule

By Internet traffic, do you mean traffic not on your local network, Or all Ethernet traffic?
You won't be able to use NAT, so set the system up to use bridging.  Then you can do whatever you want to the host.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

Board footer

Powered by FluxBB