Keep a Socket Server connection/port open for incoming requests
Hi,
I have a socket server which listens to the incoming messages. The problem is that the socket server terminates the socket connection once it receives a message.
I want this Socket server to keep on running and process all the requests it receives.
Can you please advise which stream shall be kept open for this to be achieved? Below is the code for your reference.
Thanks!
import java.net.*;
import java.io.*;
public class SocketServer
public static void main(String[] args) throws IOException
ServerSocket serverSocket = null;
String result = null;
SocketServer sockServer = new SocketServer();
try
serverSocket = new ServerSocket(4444);
catch (IOException e)
System.exit(1);
Socket clientSocket = null;
try
clientSocket = serverSocket.accept();
clientSocket.setSoTimeout(30000);
catch (IOException e)
System.exit(1);
PrintWriter out = new PrintWriter(clientSocket.getOutputStream(), true);
BufferedReader in = new BufferedReader(new InputStreamReader(clientSocket.getInputStream()));
String inputLine;
inputLine = in.readLine();
if((inputLine == null) || (inputLine.length() < 1))
throw new IOException("could not read from request stream");
else
result = sockServer.parseString(inputLine);
out.println("|0|OK|");
InputStream is = null;
FileOutputStream fout=null;
BufferedInputStream bufIn = null;
HttpURLConnection con = null;
ByteArrayOutputStream baos = null;
try
URL url = new URL("http","10.176.96.64",8080,result);
con = (HttpURLConnection)url.openConnection();
is = con.getInputStream();
bufIn = new BufferedInputStream(is);
fout=new FileOutputStream("Z:\\Clips\\Cache\\"+result);
baos = new ByteArrayOutputStream();
int c = bufIn.read();
while(c != -1)
baos.write(c);
c = bufIn.read();
baos.writeTo(fout);
catch(MalformedURLException mue)
System.err.println ("*********In Download File: Invalid URL");
catch (IOException ioe)
System.err.println ("*********In Download File: I/O Error - " + ioe);
finally
try
baos.close();
bufIn.close();
fout.close();
is.close();
con.disconnect();
catch(Exception ex)
System.out.println("*********In Download File: Exception Occured: "+ex.toString());
out.close();
in.close();
clientSocket.close();
serverSocket.close();
}
In a truly unexpected turn of events.. this question has been crossposted.
http://forum.java.sun.com/thread.jspa?threadID=5127579
Good job singalg. I highly recommend that instead of accepting that there is anything wrong with your understanding of how this should work and reviewing the tutorials you should instead repost this question daily, Each day choosing a different forum.
Similar Messages
-
Regarding ports opening for patching client machine in DMZ.
Hi ,
Regarding SCCM patching to Client Machine on DMZ.
I have SCCM server and WSUS server
both are different machines.My software update point is configured to port 8530.
I have a client machine in DMZ and want to do patching for the DMZ machine.
Ports opened from my DMZ machine to SCCM server are 445,135,80,443,8530
1.Do the above ports are fine to do patching ?
2.Do we require communication between DMZ and SCCM server on port 8530 for patching on DMZ machine?
Regards,
ArjunHi Arjun,
The answer to the first question you will find in the link Torsten posted.
The answer to the second question: Whether you should open port 8530 depends on where your Software Update Point and where the Site Server are. It must be opened for the following communication:
Client -- > Software Update Point
Site Server < -- > Software Update Point
Software Update Point -- > Upstream WSUS Server
If you have only a client in DMZ the port must be opened for the communication with the SUP.
Regarding the 3rd statement: If you are not able to telnet to the port on the server, this would mean that the communication is blocked somehow. You must make sure, that you are able to telnet to it.
Hope this helps. Regards,
Stoyan -
Howto setup an imap connection with ssl for incoming, but nonssl for outgo
I am just stucked in a "simple" problem. Our mail-server is doing imap with a special configuration:
- incomming is running imap/ssl on port 443
- outgoing is running non-ssl (plain) on port 25
The problem is that I can not set the "use ssl" and "port" configuration for incoming or outgoing separately. Or I assume I just can not find the way to setup this in the right way.
Any hints on this?
CarstenHi. To set up you ssl incoming connection, open Preferences>Accounts. Click the Advanced tab, and near the bottom, you will see a place to enter the port number and check ssl enabled. For the outgoing connection, in the preference box, click Account Information. At the bottom you should see outgoing server information. Click on this and scroll to Edit Server List. Select the appropriate server (if you have more than one) and Click the Advanced tab. You should see a radio button that selects Standard ports (25 is among them).
My account is set up exactly the same way without any problems. -
Hello All,
I appreciate your help with the issue.
We are connecting from MII 12.1 to MII 14.0 SP5 Patch 3 on our local MII server using virtual connectors. We appreciate your help on it.
This issue is happening for MII 14.0 SP5 Patch 3 on our local MII server
As per the logs, accessing http://server:port/XMIIVirtual/Illuminator gives 500 Internal Server Error
500 Internal Server Error is returned for HTTP request [http://server:port/XMIIVirtual/Illuminator]:
component [VirtualProxyConnector],
web module [XMIIVirtual],
application [sap.com/xapps~xmii~ear],
DC name [sap.com/xapps~xmii~ear],
CSN component[],
problem categorization [com.sap.ASJ.web.000137],
internal categorization [-944271956].
[EXCEPTION]
java.io.IOException: Stream closed.
at java.net.PlainSocketImpl.available(PlainSocketImpl.java:483)
at java.net.SocketInputStream.available(SocketInputStream.java:217)
at java.io.BufferedInputStream.read(BufferedInputStream.java:325)
at com.sap.engine.httpdsrclient.io.ServerInputStreamWrapper.read(ServerInputStreamWrapper.java:49)
at java.io.DataInputStream.read(DataInputStream.java:83)
at com.sap.servlet.VirtualProxyConnector.service(VirtualProxyConnector.java:110)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.runServlet(FilterChainImpl.java:202)
at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.doFilter(FilterChainImpl.java:103)
at com.sap.engine.services.servlets_jsp.server.servlet.AuthenticationFilter.doFilter(AuthenticationFilter.java:126)
at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.doFilter(FilterChainImpl.java:79)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:441)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:210)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:441)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:430)
at com.sap.engine.services.servlets_jsp.filters.DSRWebContainerFilter.process(DSRWebContainerFilter.java:38)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.servlets_jsp.filters.ServletSelector.process(ServletSelector.java:81)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.servlets_jsp.filters.ApplicationSelector.process(ApplicationSelector.java:278)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.httpserver.filters.WebContainerInvoker.process(WebContainerInvoker.java:81)
at com.sap.engine.services.httpserver.chain.HostFilter.process(HostFilter.java:9)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.httpserver.filters.ResponseLogWriter.process(ResponseLogWriter.java:60)
at com.sap.engine.services.httpserver.chain.HostFilter.process(HostFilter.java:9)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.httpserver.filters.DefineHostFilter.process(DefineHostFilter.java:27)
at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.httpserver.filters.MonitoringFilter.process(MonitoringFilter.java:29)
at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.httpserver.filters.SessionSizeFilter.process(SessionSizeFilter.java:26)
at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.httpserver.filters.MemoryStatisticFilter.process(MemoryStatisticFilter.java:57)
at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.httpserver.filters.DSRHttpFilter.process(DSRHttpFilter.java:43)
at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.httpserver.server.Processor.chainedRequest(Processor.java:475)
at com.sap.engine.services.httpserver.server.Processor$FCAProcessorThread.process(Processor.java:269)
at com.sap.engine.services.httpserver.server.rcm.RequestProcessorThread.run(RequestProcessorThread.java:56)
at com.sap.engine.core.thread.execution.Executable.run(Executable.java:122)
at com.sap.engine.core.thread.execution.Executable.run(Executable.java:101)
at com.sap.engine.core.thread.execution.CentralExecutor$SingleThread.run(CentralExecutor.java:328)
Thanks,
Kiran
Message was edited by: Kiran SakhardandeHello Julian
This is a known problem.
Cause
- A user may have been added to a group in another ldap tree with a name, that is already existing.
- When DTR retrieves the group from UME, we get 2 similar group names, but the groups may be different.
- DTR cannot handle this and throws "Internal Server error"
Resolution
If you change parameter "ume.ldap.unigue_grup_attribute" to 'uid', DTR doesn't use the groupname,
but the group-uid, therefore the group is unique.
1. open Visual Administrator
2. choose Services
3. choose UME Provider
4. Reset "ume.ldap.unigue_grup_attribute" with 'uid'
5. restart the system
Thanks
Kenny. -
How can I make Adobe Reader 9 open for incoming PDFs instead of Acrobat 5.0?
How can I make Adobe Reader 9 open for incoming PDFs instead of Acrobat 5.0?
Hi,
Assuming that you have Reader 9.3.4 already installed on your machine, you can try the following to make Reader 9.3.4 as the default PDF opening application:
1. Right click on any PDF on your system and click on the "Open With" Option in the context menu that appears. In case you get another submenu, click on Chose Program in that menu. (In case you do not see any "Open With" option, then hold down the Shift key and right click on the file)
2. Click on Browse button in the dialog that appears, and select Reader 9. Make sure that you select the checkbox for "Always use the selected program to open this kind of file"
3. Click on OK.
This will make Adobe Reader 9 as the default viewer for all PDFs on your system. -
I'm a developer and I tried to install IOS5 BETA 2 but it keeps staying "This device isn’t eligible for the requested build" even though I have submit my UDID
any buddy can help with this issue??Ask in the developers forum. This is the iPad User's forum and we wouldn't know the answer to your question.
-
Multiple port opened for one db connection.
My java standalone server connects to sql server via MS sql JDBC driver(v 2.2). I saw so many port in Time_wait state to the db server in netstat. I did some search on the internet, found that this the nature of TCP/IP protocol. and we can live with it without modifying Windows config.
however, I noticed on my side, there are two ports involved for each database connection. I think this is one of the reasons I have so many ports in Time_wait state.
To me, it seems like the request to db server is done on one port, the response from db server is done on another port. is this implemented on JDBC driver layer or on sql server?
please help !!!I saw so many port in Time_wait state to the db server in netstat. This suggests that you are not using any type of connection pooling, but instead are opening and closing connections pretty quickly, although it depends on what you mean by "many"; 10 or 100 might be a good number for a busy system, depending on your application. On some operating systems under high load, it could potentially be a problem if you are getting into many hundreds or thousands, but other issues usually drive people to using connection pools long before this issue would.
however, I noticed on my side, there are two ports involved for each database
connection. I think this is one of the reasons I have so many ports in Time_wait state.Not really. That might double the number, but the real reason is a lot of connection closes (real connection closes, not closes on a pooled connection).
To me, it seems like the request to db server is done on one port,
the response from db server is done on another port.
is this implemented on JDBC driver layer or on sql server?That is totally up to the driver vendor; there's nothing you can do about it.
please help !!!I'm not sure what you're problem really is - you might be worrying about something that isn't a problem. Is something bad happening that you're trying to fix, or did you just notice these expiring ports and start worrying about them? -
Generic server name, port, context for deployment
I need to move my application onto the server for deployment.
Up til now, I have been running a server using localhost for my
app. But I need to get the context root and run from there. I tried
using @ContectRoot but it did not give me the server. Here is a
snippet from the code? How do I do this?
// on the deployment I need to replace localhost with server
name, port, and context root
public var dbURL:String = "
http://localhost:8888/proj/loader";
<mx:HTTPService id="sysOps" useProxy="false" method="GET"
fault="handleFault(event);" url="{dbURL}"/>Only a request has a URL. It's possible for servlets to be mapped to respond to more than one URL, and the server can be configured to respond to more than one host and at more than one port. So none of those things you are asking for have any meaning without an actual request.
-
DTRServlet - 500 Internal Server Error is returned for HTTP request
Hi everybody,
I've got a Problem with my DTR.
Recently we've set up the new CE 7.2 System.
The DTR has run until about 3 hours ago.
I don't know what I've done that this error occurs, but I'm nearly shure that I haven't done anything that depends on the dtr.
I went through the set up wizzard of "Connect Design Time for Visual Composer with NWDI" again, but nothing changed.
Can you please help me with this issue?!
Thank you and best regards
julian
This is the text from the application log:
#2.0 #2010 08 20 15:02:47:398#+0200#Info#/Applications/DTR/Lifecycle#
lifecycle.startApplicationInitialisation#BC-CTS-DTR-SRV#sap.com/tcdtrenterpriseapp#005056BA56AE050000000000000010D8#1694250000000004#sap.com/tcdtrenter
priseapp#com.tssap.dtr.server.servlet.WebdavServlet#Guest#0##F30581C3AC5A11DFCAED00000019DA2A#f30581c3ac5
a11dfcaed00000019da2a#f30581c3ac5a11dfcaed00000019da2a#0#Thread[HTTP Worker [@1902689675],5,Dedicated_Application_Thread]#Plain#com.tssap.dtr.server.deltav.resources.log_messages#
Starting initialisation of DTR application.#
#2.0 #2010 08 20 15:02:47:405#+0200#Fatal#/Applications/DTR/Lifecycle#
com.sap.DI.dtr.090009#BC-CTS-DTR-SRV#sap.com/tcdtrenterpriseapp#005056BA56AE050000000001000010D8#1694250000000004#sap.com/tcdtrente
rpriseapp#com.tssap.dtr.server.servlet.WebdavServlet#Guest#0##F30581C3AC5A11DFCAED00000019DA2A#f30581c3ac5
a11dfcaed00000019da2a#f30581c3ac5a11dfcaed00000019da2a#0#Thread[HTTP Worker [@1902689675],5,Dedicated_Application_Thread]#Plain#com.tssap.dtr.server.deltav.resources.log_messages#
Initialisation of DTR application failed. Please refer to SAP note 774339 for more details on how to analyze the error condition.#
And this is the message from the Default Trace: (not all, that didn't fit in this thread)
#2.0 #2010 08 20 15:13:49:744#+0200#Error#com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl#
com.sap.ASJ.web.000137#BC-CTS-DTR-SRV#sap.com/tcdtrenterpriseapp#005056BA56AE05D600000002000010D8#1694250000000004#sap.com/tcdtrent
erpriseapp#com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl#Guest#0##7F3F3C0AAC5A11DF869E00000019D
A2A#7db05704ac5c11dfa28500000019da2a#7db05704ac5c11dfa28500000019da2a#0#Thread[HTTP Worker [@236433360],5,Dedicated_Application_Thread]#Plain##
Cannot process an HTTP request to servlet [DTRServlet] in [dtr] web application.
[EXCEPTION]
javax.servlet.ServletException: WebdavServlet.init() failed : com.tssap.dtr.pvc.basics.cluster.TaskFailedException: Connection is invalid.
at com.tssap.dtr.server.servlet.WebdavServlet.init(WebdavServlet.java:471)
at javax.servlet.GenericServlet.init(GenericServlet.java:270)
at com.sap.engine.services.servlets_jsp.server.application.WebComponents.getServlet(WebComponents.java:864)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:326)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:203)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:438)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:427)
at com.sap.engine.services.servlets_jsp.filters.DSRWebContainerFilter.process(DSRWebContainerFilter.java:38)
at com.sap.engine.services.httpserver.server.Processor.chainedRequest(Processor.java:447)
at com.sap.engine.services.httpserver.server.Processor$FCAProcessorThread.process(Processor.java:264)
at com.sap.engine.services.httpserver.server.rcm.RequestProcessorThread.run(RequestProcessorThread.java:56)
at com.sap.engine.core.thread.execution.Executable.run(Executable.java:122)
at com.sap.engine.core.thread.execution.Executable.run(Executable.java:101)
at com.sap.engine.core.thread.execution.CentralExecutor$SingleThread.run(CentralExecutor.java:328)
Caused by: com.tssap.dtr.pvc.basics.cluster.TaskFailedException: Connection is invalid.
at com.tssap.dtr.pvc.basics.cluster.ClusterExclusiveTaskRunner.start(ClusterExclusiveTaskRunner.java:54)
at com.tssap.dtr.server.deltav.impl.Repository.initialize(Repository.java:643)
at com.tssap.dtr.server.deltav.impl.Repository.initialize(Repository.java:613)
at com.tssap.dtr.server.servlet.WebdavServlet.initializeDeltaV(WebdavServlet.java:556)
at com.tssap.dtr.server.servlet.WebdavServlet.init(WebdavServlet.java:462)
... 36 more
Caused by: com.tssap.dtr.pvc.util.sql.SQLRuntimeException: Connection is invalid.
at com.tssap.dtr.pvc.util.sql.GenericStatementProvider.prepareStatement(GenericStatementProvider.java:75)
at com.tssap.dtr.pvc.util.sql.GenericStatementProvider._getPreparedStatement(GenericStatementProvider.java:62)
at com.tssap.dtr.pvc.util.sql.GenericStatementProvider.getPreparedStatement(GenericStatementProvider.java:44)
at com.tssap.dtr.pvc.basics.persistence.PersistentClass.getPreparedStatement(PersistentClass.java:148)
at com.tssap.dtr.pvc.repository.TaggedValuePersistentClass.loadTaggedValue(TaggedValuePersistentClass.java:113)
at com.tssap.dtr.pvc.repository.TaggedValueTransientClass.loadTaggedValue(TaggedValueTransientClass.java:51)
at com.tssap.dtr.pvc.repository.RepositoryManager._checkDbInitialization(RepositoryManager.java:288)
at com.tssap.dtr.pvc.repository.RepositoryManager.isDbInitialized(RepositoryManager.java:1128)
at com.tssap.dtr.server.deltav.impl.Repository.initializeDeltaV(Repository.java:558)
at com.tssap.dtr.server.deltav.impl.Repository$1.run(Repository.java:645)
at com.tssap.dtr.pvc.basics.cluster.ClusterExclusiveTaskRunner.startTask(ClusterExclusiveTaskRunner.java:65)
at com.tssap.dtr.pvc.basics.cluster.ClusterExclusiveTaskRunner.start(ClusterExclusiveTaskRunner.java:51)
... 40 more
Caused by: com.sap.engine.services.dbpool.exceptions.BaseSQLException: Connection is invalid.
at com.sap.engine.services.dbpool.cci.ConnectionHandle.checkIfInvalid(ConnectionHandle.java:652)
at com.sap.engine.services.dbpool.cci.ConnectionHandle.checkIfValid(ConnectionHandle.java:639)
at com.sap.engine.services.dbpool.cci.ConnectionHandle.prepareStatement(ConnectionHandle.java:113)
at com.tssap.dtr.pvc.basics.transaction.SharedConnection.prepareStatement(SharedConnection.java:131)
at com.tssap.dtr.pvc.util.sql.GenericStatementProvider.prepareStatement(GenericStatementProvider.java:73)
... 51 moreHello Julian
This is a known problem.
Cause
- A user may have been added to a group in another ldap tree with a name, that is already existing.
- When DTR retrieves the group from UME, we get 2 similar group names, but the groups may be different.
- DTR cannot handle this and throws "Internal Server error"
Resolution
If you change parameter "ume.ldap.unigue_grup_attribute" to 'uid', DTR doesn't use the groupname,
but the group-uid, therefore the group is unique.
1. open Visual Administrator
2. choose Services
3. choose UME Provider
4. Reset "ume.ldap.unigue_grup_attribute" with 'uid'
5. restart the system
Thanks
Kenny. -
Need alternative port open for VIPs on ACE
My ACE is almost completely configured - with VIPs, farms, real servers, redirects etc. Port 80 and 443 are working as expected and web requests are getting routed appropriately.
The need has arisen however, to allow a non-traditional port to be allowed/open to certain websites (to certain VIPs). (As some background - this is an SFTP style client based connection. )
My ACL configuration is open - ip any any - but i even created one specific to this port number. (let's just say it's 7777 for now). I've done captures on the firewall to make sure that traffic from external requests is getting through it, and when I try to connect to the real server address (either NATed or internally), it connects just fine. I am unable to see the connection attempts in the logging on the ACE and the error message that the client app gets is "connection refused"
I'm not good with policy maps or class maps, so I'm not sure if that's where I need to be looking. I suppose that the issue is at the VIP level though since the server IPs work fine, so I need to understand what gets processed via that IP that doesn't via the others.
So if I currently have websites on the ACE configured to accept, redirect, and loadbalance for port 80 and 443, but I now need them to do the same on port 7777, what changes need to be applied and where?
I can paste any config info if someone can help me. Thanks.Good afternoon,
This new port would be a completely new VIP, so, you would need to create a new class-map for it.
Daniel -
Why do I keep getting a server connection error?!
I've installed Digital Editions, but every time I try to authorise my pc it says there is a connection error and it couldn't connect to the activation server. My internet connection is working fine, I've disabled my pop-up blocker, ad blocker, mcafee and allowed Digital Editions through the firewall. Why isn't it working?
Thanks for replying - the exact error message is
"Connection Error
Digital Editions could not connect to the activation server. Please make sure you are connected to the internet."
As I said, I'm definitely connected to the internet. I've added DE to the programmes allowed through my firewall, turned off the pop up blocker and temporarily disabled mcafee, but the error message still keeps popping up.
I'm using Windows 7. Any ideas?! -
Hi all.
I have been reading all posts but no solution found for opening ports when using aMule. I have a PC which works fine and gets high Id when connecting to eMule. I have installed aMule for mac and when launching this app. a message appears telling me that port "xx", or any other has no chance to get opened :"port #x not available", no matter which port I try with. I mean: PC works fine with the same router than Mac does not.
Thanks in advance. (I am a rookie in Mac).
P.S: I forgot mentioning that firewall (Mac) was yet disabled.
Message was edited by: ansesoBe sure your firewall settings are correct (System Preferences > Security > Firewall > Advanced).
Do not use the "Block all incoming connections" setting.
Use the "Automatically allow signed software to receive incoming connections" setting.
"Enable stealth mode" is optional. -
hi aaa
WSUS in the same site server with sccm but we have one cas and three primary with WSUS
how much traffic will generate due to this process , as our CAS with WSUS will be in the same box and it will provide updates to downstream Servers in three primary sites. IS it good to have WSUS and site server together as we have SQL in different box for
all three primary and CAS.Hi Torsen
35000 clients with CAS 16GB memory and 300GB Hard disk same for all primary sites
Germany with 6000 clients ,norway with china with 15000 clients and UK with 10000clients
As the client wanted to Use CAS ,we have created CAS otherwise it could be standalone primary site.
CAS in China with each region having Primary site so we have three primary. -
Hi all ;
Just posted a question that when I want to let email to come through the ASA5505 from outside to DMZ and Inside network, are the below command lines correct and good enough?
access-list outside_DMZ extended permit tcp outside-network-ip dmz-network-ip eq imap4
access-list outside_DMZ extended permit tcp outside-network-ip dmz-network-ip eq pop3
access-list outside_DMZ extended permit tcp outside-network-ip dmz-network-ip eq smtp
access-list outside_inside extended permit tcp outside-network-ip inside-network-ip eq imap4
access-list outside_inside extended permit tcp outside-network-ip inside-network-ip eq pop3
access-list outside_inside extended permit tcp outside-network-ip inside-network-ip eq smtp
access-group outside_DMZ in interface outside
access-group outside _inside interface outside
Are there any other TCP ports want to be allowed and other command lines need to be added?
Thanks!
Regards,
tangsuanHi Jcarvaja :
Thanks for your reply!
1. For inside to outside, I have used a dynamic nat as below :
nat (inside) 20 192.168.100.0 255.255.255.0
global (outside) 20 192.168.50.171-192.168.50.180
As such, it should be not necessary for static one to one from inside to outside, right?
2. For dmz to outside, I use the static nat and so each individual mapped IP is need to create. For example :
static (dmz,outside) 192.168.20.x 192.168.50.x netmask 255.255.255.255
whereby 192.168.20.x is host at outside network and 192.168.50.x is at dmz network. This will be ok, right?
3. As for the ACL, I can group all the hosts (servers or stations) at dmz and inside and applied one ALC as below :
access-list Email_in extended permit tcp object-group Outside_Network object-group hosts_dmz_inside eq smtp
access-list Email_in extended permit tcp object-group Outside_Network object-group hosts_dmz_inside eq pop3
access-list Email_in extended permit tcp object-group Outside_Network object-group hosts_dmz_inside eq imap4
Let me know is it any problem, thanks!
regards,
tangsuan -
Skype Connect and Elastix for incoming and outgoin...
Hi,
I ordered Skype Connect, And i want to integrate skype connect with my Elastix server to handle incoming and outgoing calls.
I created new SIP Trunk through GUI with the following info :
Incoming Settings
[skype_in]
disallow=all
type=friend
username=sipusername
fromdomain=sip.skype.com
fromuser=sipusername
realm=sip.skype.com
host=sip.skype.com
dtmfmode=rfc2833
secret=sipuserpass
nat=yes
insecure=invite
qualify=yes
allow=alaw
allow=ulaw
amaflags=default
trustrpid=no
sendrpid=yes
context=from-trunk-sip-Skype_out
Outgoing Settings :
[Skype_out]
context=from-trunk-sip-Skype_out
Register String:
SIPUSER:[email protected]
Incoming calls are working properly, But outgoing calls not working, It keeps saying ( cannot-complete-as-dialed )
Elastix log after Dial
[Jul 17 01:01:25] VERBOSE[3501] pbx.c: -- Executing [00201005566352@from-internal:1] ResetCDR("SIP/100-00000010", "") in new stack
[Jul 17 01:01:25] VERBOSE[3501] pbx.c: -- Executing [00201005566352@from-internal:2] NoCDR("SIP/100-00000010", "") in new stack
[Jul 17 01:01:25] VERBOSE[3501] pbx.c: -- Executing [00201005566352@from-internal:3] Progress("SIP/100-00000010", "") in new stack
[Jul 17 01:01:25] VERBOSE[3501] pbx.c: -- Executing [00201005566352@from-internal:4] Wait("SIP/100-00000010", "1") in new stack
[Jul 17 01:01:26] VERBOSE[3501] pbx.c: -- Executing [00201005566352@from-internal:5] Progress("SIP/100-00000010", "") in new stack
[Jul 17 01:01:26] VERBOSE[3501] pbx.c: -- Executing [00201005566352@from-internal:6] Playback("SIP/100-00000010", "silence/1&cannot-complete-as-dialed&check-number-dial-again,noanswer") in new stack
[Jul 17 01:01:26] VERBOSE[3501] file.c: -- <SIP/100-00000010> Playing 'silence/1.gsm' (language 'en')
[Jul 17 01:01:27] VERBOSE[3501] file.c: -- <SIP/100-00000010> Playing 'cannot-complete-as-dialed.gsm' (language 'en')
[Jul 17 01:01:29] VERBOSE[3501] file.c: -- <SIP/100-00000010> Playing 'check-number-dial-again.gsm' (language 'en')
[Jul 17 01:01:32] VERBOSE[3501] pbx.c: -- Executing [00201005566352@from-internal:7] Wait("SIP/100-00000010", "1") in new stack
[Jul 17 01:01:33] VERBOSE[3501] pbx.c: -- Executing [00201005566352@from-internal:8] Congestion("SIP/100-00000010", "20") in new stack
[Jul 17 01:01:33] WARNING[3501] channel.c: Prodding channel 'SIP/100-00000010' failed
[Jul 17 01:01:33] VERBOSE[3501] pbx.c: == Spawn extension (from-internal, 00201005566352, exited non-zero on 'SIP/100-00000010'
[Jul 17 01:01:33] VERBOSE[3501] pbx.c: -- Executing [h@from-internal:1] Macro("SIP/100-00000010", "hangupcall") in new stack
[Jul 17 01:01:33] VERBOSE[3501] pbx.c: -- Executing [s@macro-hangupcall:1] GotoIf("SIP/100-00000010", "1?endmixmoncheck") in new stack
[Jul 17 01:01:33] VERBOSE[3501] pbx.c: -- Goto (macro-hangupcall,s,9)
[Jul 17 01:01:33] VERBOSE[3501] pbx.c: -- Executing [s@macro-hangupcall:9] NoOp("SIP/100-00000010", "End of MIXMON check") in new stack
[Jul 17 01:01:33] VERBOSE[3501] pbx.c: -- Executing [s@macro-hangupcall:10] GotoIf("SIP/100-00000010", "1?nomeetmemon") in new stack
[Jul 17 01:01:33] VERBOSE[3501] pbx.c: -- Goto (macro-hangupcall,s,2
[Jul 17 01:01:33] VERBOSE[3501] pbx.c: -- Executing [s@macro-hangupcall:28] NoOp("SIP/100-00000010", "End of MEETME check") in new stack
[Jul 17 01:01:33] VERBOSE[3501] pbx.c: -- Executing [s@macro-hangupcall:29] GotoIf("SIP/100-00000010", "1?noautomon") in new stack
[Jul 17 01:01:33] VERBOSE[3501] pbx.c: -- Goto (macro-hangupcall,s,34)
[Jul 17 01:01:33] VERBOSE[3501] pbx.c: -- Executing [s@macro-hangupcall:34] NoOp("SIP/100-00000010", "TOUCH_MONITOR_OUTPUT=") in new stack
[Jul 17 01:01:33] VERBOSE[3501] pbx.c: -- Executing [s@macro-hangupcall:35] GotoIf("SIP/100-00000010", "1?noautomon2") in new stack
[Jul 17 01:01:33] VERBOSE[3501] pbx.c: -- Goto (macro-hangupcall,s,41)
[Jul 17 01:01:33] VERBOSE[3501] pbx.c: -- Executing [s@macro-hangupcall:41] NoOp("SIP/100-00000010", "MONITOR_FILENAME=") in new stack
[Jul 17 01:01:33] VERBOSE[3501] pbx.c: -- Executing [s@macro-hangupcall:42] GotoIf("SIP/100-00000010", "1?skiprg") in new stack
[Jul 17 01:01:33] VERBOSE[3501] pbx.c: -- Goto (macro-hangupcall,s,45)
[Jul 17 01:01:33] VERBOSE[3501] pbx.c: -- Executing [s@macro-hangupcall:45] GotoIf("SIP/100-00000010", "1?skipblkvm") in new stack
[Jul 17 01:01:33] VERBOSE[3501] pbx.c: -- Goto (macro-hangupcall,s,4
[Jul 17 01:01:33] VERBOSE[3501] pbx.c: -- Executing [s@macro-hangupcall:48] GotoIf("SIP/100-00000010", "1?theend") in new stack
[Jul 17 01:01:33] VERBOSE[3501] pbx.c: -- Goto (macro-hangupcall,s,50)
[Jul 17 01:01:33] VERBOSE[3501] pbx.c: -- Executing [s@macro-hangupcall:50] Hangup("SIP/100-00000010", "") in new stack
[Jul 17 01:01:33] VERBOSE[3501] app_macro.c: == Spawn extension (macro-hangupcall, s, 50) exited non-zero on 'SIP/100-00000010' in macro 'hangupcall'
[Jul 17 01:01:33] VERBOSE[3501] pbx.c: == Spawn extension (from-internal, h, 1) exited non-zero on 'SIP/100-00000010'
Are there any modifications should i do in Incoming and outgoing settings to work properly .?
Regards,May be the prefix is wrong. You dont have to put 00 before the country number.
Maybe you are looking for
-
No boot when HD inside machine, just fine in external enclosure
I have a mid-2009 13" MacBook Pro that's having a strange problem. It crashed hard last night while I was typing something- just froze solid, couldn't force quit, then the mouse pointer stopped. Shut it down with the power button, started it again, g
-
Is there anyone who can help me?
I am using the jdbc and to access mysql. Here is the part of the code: Class.forName("com.mysql.jdbc.Driver"); String url = "jdbc:mysql://localhost:3306/e-trading"; Connection con = DriverManager.getConnection(url);
-
Compressor 4 crashes when adjusting filters
Compressor 4 has begun to crash every time I adjust filters. Otherwise it seems to work fine. It has all been working consistently with some pretty intense usage for the last two weeks, but now, all of a sudden, not. I have no problem outputting/rend
-
Can I make a crossfade loop?
So lets say I have a minute of room ambience or mood music. I need to chop out 30 seconds and loop it totally seamless for a website-not just picking a good start and stop but grabing a little from each end and crossfading. This is something you can
-
Unable to find ZENAUTIL.DLL
Hi Some of our workstations (mainly XP) are facing following problem after installing and or upgrading to ZfD Agent 4.0 and or 4.0.1 During startup i get an error "Unable to load zenautil.dll I can regenerate the error by trying to start the service