I currently face the problem, that one specific client with dynamic IPv4 Address cannot communicate with a specific server. Vice versa also doesen't work. That includes pinging, rdp, network shares. As if those two simply do not see each other.Every other client / server in the domain network can communicate without any problems.
DC is reachable, therefore DHCP & DNS are working as expected. Nslookup resolves the servers hostname correctly and vice versa, the same things when looking up the client from the servers perspective.
If it is of any relevance, router A and node 1 are hosted in the cloud through Vultr. I have the private network enabled and node 1 is requesting addresses from the DHCP server on router A. Vultr does assign private IPs in the 10.X.X.X space with the same subnet. Could my IP space be conflicting with theirs? Vultr does not deploy a gateway and the IPs they assign are entirely static.
We have a very small business network, with a typical cable modem hooked into a DD-WRT router. We also run a basic CentOS server that does a variety of things, including acting as the primary DNS server for the office.
The reason we need an internal DNS server is because we do a lot of internal web development and use the DNS server to add/remove various local network URLs for internal website testing (like www.testsite.com.local). It's very important for us to be able to add/remove URL aliases easily to the DNS.
The problem with this setup is that if we ever need to restart the CentOS server or take it offline for upgrades or whatever, then internet access for all computers on the network is lost. That's because each computer relies on that DNS server to access the Internet I guess?
The router is online all the time and very very rarely has to be restarted. It would be nice if we could setup my router to be the primary DNS server but still be running DNS on my server. So we could still add my local testing website URLs to the DNS server in CentOS, but be able to also take down the CentOS server without loosing Internet access on the network.
How would this be setup? Would I simply need to add both router + server IP addresses to each computer's IP settings? Is the router primary DNS and server secondary DNS server? Or vice versa? Or can one of the two serve as a fallback for the other? What (if anything) needs to be configured on both the router and server in order for them to recognize that the other DNS server exists on the network?
Set your DHCP server (likely your router) to hand out leases with your CentOS box as primary DNS and the router as secondary. Reason being you would prefer your client pc's to use the CentOS box as this has the relevant records for our testing websites and anything else, and when you do have to take this box down, clients will fall back to your router which will serve DNS records for the public internet but will have no knowledge of your internal structure.
Option A: setup dd-wrt with your CentOS box as primary DNS, and your ISPs DNS as secondary DNS. In dd-wrt, you can enforce strict ordering of DNS servers, which overcomes the restriction I pointed out in response to Robin's answer. References: dd-wrt forum and dd-wrt wiki. Note that I am not sure this will work with your CentOS box on your LAN; if not, that leaves you with option B.
I'm a newbie in stackoverflow and in perl IO::Socket sockets programming. I have a problem with my project. I have a TCP client and server script where the client can send file to the server. The server side creates a directory where it stores received files.It can display the files inside the directory.It can also read files(txt) or delete files.
When you talk about creating TCP client and server all that you have is two pipes - sort of 2-wire copper telephone line. As you can imagine, you can transmit a lot of things over the telephone, and you can even implement file transfer protocol over that. However, there is nobody here to help you actually implement such protocol. Doing it could be quite complicated - just look at protocols like FTP, HTTP, SMB, NFS, SCP/SSH. All these protocols can talk over TCP and send files. But they are not very simple.
Also, when you talk about deleting a file, the very first consideration should be security. If other side asks you to delete some file, how could you trust that it is legitimate connection? What if somebody is trying to exploit your service and either maliciously remove some critical files, or just trying to hack into your server by deleting say /etc/passwd or /etc/shadow? In other words, it extremely complicated and fragile topic, and the very first rule is to never trust or assume anything about another party, much like talking to stranger over telephone.
Using Meteor#methods works great in case user events should be mapped to server side actions. The other way around is still unclear. Asynchronous actions on serverside could persist their results in a collection which is pub/sub'ed to the client, which in turn could update some view due to the reactive context. But thats odd, cause persisting that kind of info is slow, wasted space and time. Any suggestions?
I believe you can use the Collection.observe on the server side to 'observe' events on the Collection as clients are inserting, updating, removing, etc... That might be a start if you are focused on Collections alone. I used it like a sort of server side event loop to watch for collection changes.
When a user clicks on something in a view try binding a Template Event to the View css selector and then calling a Meteor method which will notify the server of the event. See the examples of binding a key handler and/or button handlers to a Template.entry.event which then call a Meteor method notifying the server that something happened.
I have a small program that sends and receives data from server and client and vice-versa.Everything works fine, but I can't see received messages in both sides and it is always 0 bytes. It doesn't give any compile error but doesnt work the way I wanted to.Can you please have a look at this, where I am doing wrong ?Thanks
It's been a while since I've done raw sockets programming, but I think there's something fishy with your recv() calls. IIRC, recv() blocks until it reads the full size of the buffer or the connection is closed. Since neither end sends enough data for it to fill the buffer, and the socket doesn't get closed until after the recv() calls, I think one or both of your client/server should hang. Since they do not, one of two things is happening. Either the sockets are configured for non-blocking mode and you need to configure them to block, or something is closing the socket. I'm sorry I can't offer more detailed help than that, but hopefully it will point you in the right direction. You may also want to investigate the shutdown() call to use on sockets so that you don't close them before all the data in the buffer is sent. Not sure if that has anything to do with your problem.
The main purpose of this chat is not going to over the top with all the channels. It's not your usual music production server, but it's mainly focussed on working together with a singer and/or producer.
But say I want the server to encrypt data using the private key and decrypt it using the public key, as a way of distributing data that can be verified to have come from the right server. Rather than modify the code to allow this, can I simply publish the private key and keep the public key secret? Does this affect the security of the system?
The server can encrypt data using its private key and the receiver can decrypt using the servers public keys, this is possible. However, this scenario is used to digitally sign a document and as you say its "a way of distributing data that can be verified to have come from the right server", as only the corresponding key (public key of the server) could be used to decrypt the data. The public key of the server is verified by the corresponding digital certificate generated and digitally signed by the server.
Yes, also this system is not viable, for example, if you are using Diffie-Hellman (one of the most widely used key exchange protocol), the server and all the clients have to share public values, that are used to calculate session keys. So if you as a user publish your private key, it's very easy to calculate public key, which is not possible or very difficult the other way round.
Knowledge of the mechanics of the client-server application paradigm (if you will) help make you more effective in support of your employers resources. For instance, being able to advise the app team that looping over a query vs. querying all the rows they need at once is generally a poor idea and why. Even something as simple as advising on the configuration of a connection string can be of tremendous value.
You also need to be able to explain to Sr. System Admins, storage admins, etc., in clear terms what your db server needs in terms of resources and configuration and why. Knowledge in these areas only aids you in this. For example, in many cases, the storage team will not know how to configure disks for SQL Server. You need to be able to tell them how and justify it.
I have been struggling to find the appropriate information here, so I'm hoping that you can help me out. I'm looking to setup our Solarwinds Console to perform WMI monitoring of 5 servers at 5 different sites. Ideally this is particularly just simply going to be using WMI to communicate between each. In order to accommodate this, I have to open up the firewalls at each of the sites to allow the specific traffic going through. I have been looking through the documentation for both NPM and SAM, and unfortunately I'm nowhere closer knowing what ports need to leave the clients to the server, and what ports need to leave the server to the clients.
I think you just made the decision a lot easier. Presently we were tracking those machines via SNMP, and I think that is what is going to work for us the best. Some of the sites I monitor are global, and they don't have good of an internet connection to said sites. Since it is only 5 servers per site, and I'm really only concerned about up/down, SNMP is going to be the best method. This also won't require additional firewall openings, and I simply have to add the IP address of the new server to their firewall.
aa06259810