06-15-2010 01:07 AM
09-02-2011 05:47 PM
11-15-2011 11:36 PM
11-24-2011 08:13 PM
127.0.0.1 localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6
127.0.0.1 aurc.dgde.in aurc
192.168.1.233 aurc.dgde.in aurc
# Configure the CIFS server to use non-privileged ports
# CIFS ports being changed to above 1024
# Binding with ports below 1024,requires that Alfresco be run as root
cifs.enabled=true
cifs.serverName=localhost
cifs.tcpipSMB.port=1445
cifs.netBIOSSMB.namePort=1137
cifs.netBIOSSMB.datagramPort=1138
cifs.netBIOSSMB.sessionPort=1139
# Generated by iptables-save v1.4.7 on Sat Nov 5 13:47:16 2011
*nat
:PREROUTING ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
:POSTROUTING ACCEPT [0:0]
# Redirect from port 445 to port 1445
-A PREROUTING -p tcp -m tcp –dport 445 -j REDIRECT –to-ports 1445
# Redirect from port 137 to port 1137
-A PREROUTING -p tcp -m tcp –dport 137 -j REDIRECT –to-ports 1137
# Redirect from port 138 to port 1138
-A PREROUTING -p tcp -m tcp –dport 138 -j REDIRECT –to-ports 1138
# Redirect from port 139 to port 1139
-A PREROUTING -p tcp -m tcp –dport 139 -j REDIRECT –to-ports 1139
COMMIT
# Completed on Sat Nov 5 13:47:16 2011
# Generated by iptables-save v1.4.7 on Sat Nov 5 13:47:16 2011
*mangle
:PREROUTING ACCEPT [0:0]
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
:POSTROUTING ACCEPT [0:0]
COMMIT
# Completed on Sat Nov 5 13:47:16 2011
# Generated by iptables-save v1.4.7 on Sat Nov 5 13:47:16 2011
*filter
:FORWARD ACCEPT [0:0]
:INPUT ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
# Accept Established/Related connections
-A INPUT -m state –state ESTABLISHED,RELATED -j ACCEPT
# Accept ICMP packets
-A INPUT -p icmp -j ACCEPT
-A INPUT -i lo -j ACCEPT
# Accept packets to apache web server
-A INPUT -p tcp -m tcp -m state –dport 80 –state NEW -j ACCEPT
# Accept packets to tomcat web server
-A INPUT -p tcp -m tcp -m state –dport 8080 –state NEW -j ACCEPT
# Accept packets to tomcat web server
-A INPUT -p udp -m udp -m state –dport 8080 –state NEW -j ACCEPT
# Accept packets to SSH server
-A INPUT -p tcp -m tcp -m state –dport 22 –state NEW -j ACCEPT
# Accept packets to SMTP server https
-A INPUT -p tcp -m tcp -m state –dport 25 –state NEW -j ACCEPT
# Accept packets to Web server https
-A INPUT -p tcp -m tcp -m state –dport 443 –state NEW -j ACCEPT
# Accept CIFS packets
-A INPUT -p tcp -m tcp -m state –dport 1445 –state NEW -j ACCEPT
-A INPUT -p tcp -m tcp -m state –dport 1139 –state NEW -j ACCEPT
-A INPUT -p udp -m udp -m state –dport 1137 –state NEW -j ACCEPT
-A INPUT -p udp -m udp -m state –dport 1138 –state NEW -j ACCEPT
-A INPUT -j REJECT –reject-with icmp-host-prohibited
-A FORWARD -j REJECT –reject-with icmp-host-prohibited
COMMIT
# Completed on Sat Nov 5 13:47:16 2011
$ smbclient -Uadmin -p 1139 //127.0.0.1/alfresco
$ smbclient -Uadmin%adminpasswd -p 1139 //127.0.0.1/alfresco
$ smbclient -Uadmin%adminpasswd -p 1139 -D Sites/myoffice //127.0.0.1/alfresco
$ smbclient -Uadmin%adminpasswd -p 1139 -D Sites/myoffice -c "mkdir myfolder" //127.0.0.1/alfresco
$ smbclient -Uadmin%adminpasswd -p 1139 -D Sites/myoffice/myfolder -c "put myfile.txt" //127.0.0.1/alfresco
$ smbclient -Uadmin%adminpasswd -p 1139 -D Sites/myoffice/myfolder -c "lcd /home/Alfresco ; put myfile.txt" //127.0.0.1/alfresco
$ smbclient -Uadmin -p 1139 //aurc/alfresco
05-23-2016 03:09 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.