Editing
RestrictingVserverNetworkingTips
(section)
From Linix VServer
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Network-less guest == Strictly speaking this is an "interface-less" guest rather than a network-less one. This is a guest that cannot make network connections and cannot be reached from the network since it has ''no'' network interfaces. On a kernel with newer (>= 2.3?) vserver patches it should be possible to create a guest with no interfaces by keeping the directory <tt>/etc/vservers/<guest-name>/interfaces/</tt> empty. However, this does '''not''' work with Debian etch (util-vserver 0.30.212 and vserver 2.0.2). Instead, you get a guest with all host interfaces available for outgoing network connections. At the same time the guest cannot bind a server to these interfaces so one cannot reach the guest from the network. To disable ''outgoing'' use of network interfaces under a kernel with the older (<= 2.0.2?) vserver patches, you proceed as follows. You create an interface directory (say <tt>/etc/vservers/<guest-name>/interfaces/0/</tt>) with the <tt>nodev</tt> configuration. Be sure to define an <tt>ip</tt> as this is verified first in <tt>/usr/lib/util-vserver/vserver.functions</tt>; the value in <tt>ip</tt> can be any IP address that is '''not''' an IP address of the host. (For example, an address like <tt>192.168.x.y</tt> or <tt>10.x.y.z</tt> which is chosen at random will not be a host address with some luck.) This will result in a non-existent host interface being "assigned" to the guest and thus "no" interface will be available to the guest.
Summary:
Please note that all contributions to Linix VServer may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Linix VServer:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Page actions
Page
Discussion
Read
Edit
History
Page actions
Page
Discussion
More
Tools
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
About
Overview
Paper
News
Developers
Donations
Search
Getting Started
Downloads
FAQs
Documentation
Support
Participate
How to participate
Report a Bug
Communicate
Teams/Projects
Hall of Fame
Resources
Archives
Recent Wiki Changes
Pastebin
Related Projects
VServer Hosting
Happy VServer Users
Tools
What links here
Related changes
Special pages
Page information