OpenVZ Forum


Home » General » Support » *SOLVED* NAT doesn't seem to work
Re: NAT doesn't seem to work [message #4997 is a reply to message #4996] Tue, 08 August 2006 01:33 Go to previous messageGo to previous message
duswil is currently offline  duswil
Messages: 77
Registered: January 2006
Member
[root@hn net]# cat /proc/sys/net/ipv4/ip_forward
1


[root@hn net]# cat /etc/sysconfig/vz-scripts/4001.conf
# Configuration file generated by vzsplit for 20 VPS
# on HN with total amount of physical mem 2023 Mb
# low memory 2023 Mb, swap size 1027 Mb, Max treads 8000
# Resourse commit level 0:
# Free resource distribution. Any parameters may be increased
# Primary parameters
NUMPROC="516:516"
AVNUMPROC="258:258"
NUMTCPSOCK="516:516"
NUMOTHERSOCK="516:516"
VMGUARPAGES="28052:2147483647"

# Secondary parameters
KMEMSIZE="21216542:23338196"
TCPSNDBUF="4958645:7072181"
TCPRCVBUF="4958645:7072181"
OTHERSOCKBUF="2479322:4592858"
DGRAMRCVBUF="2479322:2479322"
OOMGUARPAGES="28052:2147483647"
PRIVVMPAGES="168312:185143"

# Auxiliary parameters
LOCKEDPAGES="1035:1035"
SHMPAGES="16831:16831"
PHYSPAGES="0:2147483647"
NUMFILE="8256:8256"
NUMFLOCK="825:907"
NUMPTY="51:51"
NUMSIGINFO="1024:1024"
DCACHESIZE="4616947:4755456"
NUMIPTENT="100:100"
DISKSPACE="724049:796454"
DISKINODES="396156:435772"
CPUUNITS="4680"
IP_ADDRESS="172.16.4.1"
HOSTNAME="testvps"
VE_ROOT="/vz/root/$VEID"
VE_PRIVATE="/vz/private/$VEID"
OSTEMPLATE="debian-3.1-i386-base"
ORIGIN_SAMPLE="default"
NAMESERVER="172.16.1.1"
SEARCHDOMAIN="local"
ONBOOT="yes"


[root@hn net]# cat /etc/vz/vz.conf
## Global parameters
VIRTUOZZO=yes
LOCKDIR=/vz/lock
DUMPDIR=/vz/dump
VE0CPUUNITS=1000

## Logging parameters
LOGGING=yes
LOGFILE=/var/log/vzctl.log
LOG_LEVEL=0

## Disk quota parameters
DISK_QUOTA=yes
VZFASTBOOT=no

# The name of the device whose ip address will be used as source ip for VE.
# By default automatically assigned.
#VE_ROUTE_SRC_DEV="eth0"

## Template parameters
TEMPLATE=/vz/template

## Defaults for VEs
VE_ROOT=/vz/root/$VEID
VE_PRIVATE=/vz/private/$VEID
CONFIGFILE="default"
DEF_OSTEMPLATE="debian-3.1-i386-base"

## Load vzwdog module
VZWDOG="no"

IPTABLES="ipt_REJECT ipt_tos ipt_limit ipt_multiport iptable_filter iptable_mangle ipt_TCPMSS ipt_tcpmss ipt_ttl ipt_length iptable_nat"


[root@hn net]# cat /etc/vz/conf/ve-default.conf-sample
# Configuration file generated by vzsplit for 20 VPS
# on HN with total amount of physical mem 2023 Mb
# low memory 2023 Mb, swap size 1027 Mb, Max treads 8000
# Resourse commit level 0:
# Free resource distribution. Any parameters may be increased
# Primary parameters
NUMPROC="516:516"
AVNUMPROC="258:258"
NUMTCPSOCK="516:516"
NUMOTHERSOCK="516:516"
VMGUARPAGES="28052:2147483647"

# Secondary parameters
KMEMSIZE="21216542:23338196"
TCPSNDBUF="4958645:7072181"
TCPRCVBUF="4958645:7072181"
OTHERSOCKBUF="2479322:4592858"
DGRAMRCVBUF="2479322:2479322"
OOMGUARPAGES="28052:2147483647"
PRIVVMPAGES="168312:185143"

# Auxiliary parameters
LOCKEDPAGES="1035:1035"
SHMPAGES="16831:16831"
PHYSPAGES="0:2147483647"
NUMFILE="8256:8256"
NUMFLOCK="825:907"
NUMPTY="51:51"
NUMSIGINFO="1024:1024"
DCACHESIZE="4616947:4755456"
NUMIPTENT="100:100"
DISKSPACE="724049:796454"
DISKINODES="396156:435772"
CPUUNITS="4680"
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: firewall into VE and isolating eth's from the host
Next Topic: *SOLVED* VPS Tamplate: gentoo-20060317-i686-stage3
Goto Forum:
  


Current Time: Fri Jul 19 07:17:03 GMT 2024

Total time taken to generate the page: 0.02487 seconds