Connecting to network but not to internet in Ubuntu?

Soldato
Joined
1 Jul 2007
Posts
21,884
Location
Various
I have a server based round Samba which I'm using to serve files across a network, but don't have any need for the server to be plugged into the network 24/7. I know that viruses are rare on Ubuntu, but it's not worth the risk if I have no need for it.

How can I leave the server connected to the network and serving files, but not connected to the internet?
 
Not a linux expert, just have a tinker every now and then, so others might have better ideas.

Firewall to block access to the net? I found Shorewall's pretty easy to use.
 
The other thought I'd had was remove the default gateway (or change it to something invalid), so the box can't get network traffic out to the net, but that sounded like even more of a bodge! :D
 
If you configure iptables/netfilter correctly I wouldnt call it a bodge job, its about as customisable/solid as you can get. If you wanted more i'd look at a hardware firewall to sit outside the box?
 
Back
Top Bottom