http://www.davidbaker.cc/?q=node/3

# Append the following to /usr/share/tomcat6/shared/classes/alfresco-global.properties

cifs.enabled=true
cifs.Server.Name=alfresco
cifs.ipv6.enabled=false
cifs.tcpipSMB.port=1445
cifs.netBIOSSMB.namePort=1137
cifs.netBIOSSMB.datagramPort=1138
cifs.netBIOSSMB.sessionPort=1139

# To load the NAT module at system startup append the following to /etc/modules

iptable_nat

# Enable port forwarding. In /etc/sysctl.conf uncomment the following line

net.ipv4.ip_forward=1

# Configure port forwarding

iptables -F
iptables -t nat -F
iptables -P INPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -P OUTPUT ACCEPT
iptables -t nat -A PREROUTING -p tcp --dport 445 -j REDIRECT --to-ports 1445
iptables -t nat -A PREROUTING -p tcp --dport 139 -j REDIRECT --to-ports 1139
iptables -t nat -A PREROUTING -p udp --dport 137 -j REDIRECT --to-ports 1137
iptables -t nat -A PREROUTING -p udp --dport 138 -j REDIRECT --to-ports 1138

# Save iptables configuration

iptables-save > /etc/iptables.rules

# Set network interface to load iptables configuration at system startup. Append the following to the end of your primary network interface configuration in /etc/network/interfaces

pre-up iptables-restore /etc/iptables.rules

# Reboot server. Ensure you can connect to "http://ServerIPAddress:8080/alfresco" and "http://ServerIPAddress:8080/share" using your web browser. Also ensure you can connect to "\\ServerIPAddress\Alfresco" using Windows Explorer. Log into each interface with user name and password of "admin"
Posted by fermi

댓글을 달아 주세요