From 8b88f3b308666f2dfda683870fa09489ebe3f5ff Mon Sep 17 00:00:00 2001 From: Volker Uhrig Date: Mon, 14 May 2007 12:59:24 +0000 Subject: dhcpd.conf and nat.conf for vmware-vmnet8 added git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1079 95ad53e4-c205-0410-b2fa-d234c58c8868 --- virtualization/templates/dhcpd.conf | 22 ++++++++++++++++++ virtualization/templates/nat.conf | 46 +++++++++++++++++++++++++++++++++++++ 2 files changed, 68 insertions(+) create mode 100644 virtualization/templates/dhcpd.conf create mode 100644 virtualization/templates/nat.conf (limited to 'virtualization') diff --git a/virtualization/templates/dhcpd.conf b/virtualization/templates/dhcpd.conf new file mode 100644 index 00000000..6bc581a4 --- /dev/null +++ b/virtualization/templates/dhcpd.conf @@ -0,0 +1,22 @@ +# +# Configuration file for ISC 2.0b6pl1 vmnet-dhcpd operating on vmnet8. +# +# This file was automatically generated by the VMware configuration program. +# If you modify it, it will be backed up the next time you run the +# configuration program. +# +# We set domain-name-servers to make some DHCP clients happy +# (dhclient as configued in SuSE, TurboLinux, etc.). +# We also supply a domain name to make pump (Red Hat 6.x) happy. +# +allow unknown-clients; +default-lease-time 1800; # 30 minutes +max-lease-time 7200; # 2 hours + +subnet 192.168.100.0 netmask 255.255.255.0 { + range 192.168.100.100 192.168.100.101; + option broadcast-address 192.168.100.255; + option domain-name-servers 192.168.100.2; + option domain-name "localdomain"; + option routers 192.168.100.2; +} diff --git a/virtualization/templates/nat.conf b/virtualization/templates/nat.conf new file mode 100644 index 00000000..07d684f0 --- /dev/null +++ b/virtualization/templates/nat.conf @@ -0,0 +1,46 @@ +# Linux NAT configuration file +[host] +# NAT gateway address +ip = 192.168.100.2 +netmask = 255.255.255.0 +# or ip = 172.16.184.2/24 + +# enable configuration; disabled by default for security reasons +#configport = 33445 + +# VMnet device if not specified on command line +device = /dev/vmnet8 + +# Allow PORT/EPRT FTP commands (they need incoming TCP stream...) +activeFTP = 1 + +# Allows the source to have any OUI. Turn this one if you change the OUI +# in the MAC address of your virtual machines. +#allowAnyOUI = 1 + +[udp] +# Timeout in seconds, 0 = no timeout, default = 60; real value might +# be up to 100% longer +timeout = 60 + +[incomingtcp] +# Use these with care - anyone can enter into your VM through these... + +# FTP (both active and passive FTP is always enabled) +# ftp localhost 8887 +#8887 = 172.16.184.128:21 + +# WEB (make sure that if you are using named webhosting, names point to +# your host, not to guest... And if you are forwarding port other +# than 80 make sure that your server copes with mismatched port +# number in Host: header) +# lynx http://localhost:8888 +#8888 = 172.16.184.128:80 + +# SSH +# ssh -p 8889 root@localhost +#8889 = 172.16.184.128:22 + +[incomingudp] +# UDP port forwarding example +#6000 = 172.16.184.128:6001 -- cgit v1.2.3-55-g7522