Local Connetion With Static IP's What Is The Gateway Address
Jun 1, 2009
we have two servers; webserver and database server connected directly to each other via a standard cat6 cross-over cable. I am setting up their static IP's and have a few questions.
Both are running windows 2003. I went and setup the static ip's as follows:
I'm using XEN to setup my VPS. The installation have no problem for the first two server. On the 3rd server, I install using DHCP IP and it's ok.The problem is when I change the DHCP IP to static IP .
Using Centos 5.2, I'm using vi to edit /etc/sysconfig/network-scripts/ifcfg-eth0 and restart the network service network restart, the IP change, but outside or other static IP VPS network can't ping to this server.
I've tried to change the /etc/xen/the-host-config to include the IP . the results is still the same. Is there some script or way I can use to bridge this new 3rd server to the Xen host ant other network?
We are having some problems with a Foundry Bigiron 4000.
The hardware config is as following:
- Bigiron 4000 chassis
- 2x B8GMR3-A management (active + standby)
- 2x B24E
Once every couple of days now, we get the following error in syslog:
Code: 2009-10-05 20:40:00User.Warning8x.xx.50.1Oct 5 20:39:59 gateway IP: IP: Duplicate IP address 8x.xx.38.1 detected sent from MAC address 0004.d3ea.e200 interface 3/13, 1 packets, first packet received at time 1 days 20 hours 41 minutes 37 seconds since bootup!............
There is a strange problem with the new feature fail2ban. I have noticed that a local ip address (ip address from the webserver itself) was added to the blocked ip addresses of fail2ban now for the second time. What I can see is that it was the recidive jail.
If there is nginx used as reverse proxy you get a "502 Bad Gateway". Any way to find out more about the reason why an ip address is added to the list of blocked ip addresses in fail2ban?
I want to run .asp pages on a windows server where i am currently running .HTML files (STATIC without any script or database). I want convert those .html pages to .asp (without any scripts).
So WHAT DO YOU THINK, that .html (static) should work exactly same like .asp (Static) ? Suppose .html pages DO NOT CREATE any issue with IIS load , so using same (basic html code) in .asp would create any issue with APPLICATION POOL (IIS)?
My ISP here in the UK does not provide static ip addresses. I'd like to be able to set my server to only accept root access attempts from a set IP.
I am aware of how to set this up on my server, but not on my own machine.
I'd appreciate if anyone recommend the best service to use when seeking a static IP address and also point me in the right direction of documentation that explains how to utilise this IP (connect through it so when connecting to my server it sees the static IP and not my dynamic ISP IP).
I've had a search on WHT and Google but most of the documentation I've encountered is for people who want to run a web server from their home machine and so want a static IP for incoming connections.
i have a domain hosted at eNom which i would like to point to my FTP server which is running on my box at home. I have a static IP, and BulletProof FTP server installed. Now im just unclear how i can have www.mydomain.com point to 212.12.34.56:21.
I currently have an existing web hosting package with a web host. However, I need to supplement that with a file hosting service for my users.
I'm estimating that I will need about 2Gb disk space, and approximately 30~40Gb of traffic monthly. This will just be plain static file hosting. I don't need any scripts, databases, etc.
Recently two servers of mine have stopped communicating with each other and I've been told to create a static route between the two, I am using CentOS 4.4 and not sure what the exact syntax would be
this isn't my server, so I don't have a lot of information about it, other than it's a Linux/Apache Dedicated server at EV1. (cPanel/WHM)
There are other sites on the server, and they are running fine.
One site has a terrible lag. It takes about 10 seconds to serve up a static HTML file..
Now, it's not like the server is slow. It's like this: You request a small HTML file. The site sits and thinks about it for about 10 seconds, and then after that everything processes quickly.
The forum on the site is the same way. Everything you click on works fine and loads quickly after that initial delay passes.
Is there a common configuration problem that might be causing this?
If you want to see this phenomenon, here are a few test files: [url] [url] [url] [url]
I want to setup static routes on my servers so that my colo provider won't bill me for traffic among my servers.
I use FreeBSD 6 on my servers. I read the FreeBSD handbook on this and it looks like i should do this:
route add -net 0.0.0/24 0.0.0.3
where 0.0.0/24 is the C class I have from my provider and 0.0.0.3 is the IP address of my server (one of them/any of them).
However, this route appears to already exist as i get this error when running that route command:
route: writing to routing socket: File exists add net 0.0.0: gateway 0.0.0.3: route already in table
Do I need to use a non-routeable ip block (eg 192.168.x.x) for this? Can I use "real"/routeable ips? Does FreeBSD take care of this for me automatically?
My customer has an external facing Apache server that is acting as a reverse proxy to two internal applications. They have:
- external addresses for each app which resolve to different ip addresses, so app1.their_domain.com and app2.their_domain.com resolve to 77.3.170.10 and 77.3.170.11 respectively. - the Apache server has two network interfaces with ip addresses 192.168.10.10 and 192.168.10.11 - the external ip addresses resolve to the above internal addresses - the firewall between the Apache server and the internal app servers is configured to allow traffic from 192.168.10.10 to reach app_server1, and traffic from 192.168.10.11 to reach app_server2, both using port 7777.
I have configured a virtual host in httpd.conf for each ip, i.e.
This works fine in that the external address are being routed to the correct application, however the firewall is blocking requests to the second app as it appears the requests are coming from the Apache servers 'primary' ip address 192.168.10.10 instead of 192.168.10.11.
Is it possible to send requests using the ip address from the relevant VirtualHost?
I've been running website for several years, however, there's one thing that I've never quite figured, most likely because I haven't gone over to dedicated/vps yet.
How much memory would a static 10kb HTML use or for that matter a PHP page (static)?
I know it's quite a broad question, but I'm asking this as I might start a project and this one page may receive many hits. Oh and, would the memory usage go up if I have embedded objects from an outside source (e.g. embedded Youtube videos)?
I am using the following configure command in hope to generate a PHP binary which is totally independent, standalone and can be moved to other systems without caring for dependencies:
my current servers are part of this mess with Alphared: [url]
what I'm looking for:
static content main server: average cpu, average ram 15-20gb data tops, but could use a fast drive need about 6tb/m of higher quality bandwidth 2 machine cluster for forums
only thing on this will be vBulletin forums. current database is about 6gb (~7 million posts) averaging about 800 members active per 15 mins this isn't for a business, so it all comes out of my pocket. however, after the $#@! with Alphared I do recognize the importance of a good host and I am willing to put money toward that as needed. however, my goal is in the $600-$800/m range for everything. is that price range doable? if not, what is a reasonable price for what I'm asking? and can anyone recommend reliable hosts (especially one that can correctly setup the cluster for the forums).
I'm planning to setup a server ONLY for hosting of static binary files varying from few KB to few MB in size.
I've seen some of the litespeedtech performance benchmarks, which you can find here: [url]
From the "small static file" benchmark chart, i can see that IIS6 beats lighttpd in this test.
So i'm wondering does the IIS6 really have better performance at file hosting than lighttpd.
Actually it does not matter which operating system i will be using at this server, since i will use it only for file serving. With lots of concurrent connections. Possibly thousands of connections.
I need some feedbacks on this, so i can decide, IIS or lighttpd.
Few more bucks for win2k3 won't be an issue here, if it's performance is better than lighttpd for this kind of use.
I transferred my WordPress site to static HTML website, but some other website have a link to my old WordPress site URL....
I want to redirect all traffic from that URL to new URL which is URL...., but my redirect in .htaccess file doesn't work (Redirect 301 /?page_id=1234 URL... because of the query string."mod_rewrite" to create the right code in .htaccess file.
setting up something that would run via php and then send SMS when its called to do so.
I would need a mobile line attached to the server and then I am a little lost.
Currently what I do is that I have my own monitoring script, then when somethings goes wrong, it emails to one of my email accounts and then it SMS me of the contents. But their service is not always reliable so was wanting to setup something on my own end.
I'm looking for a way to get a little more mileage out of Apache + PHP environment without losing Apache capabilities. In shared hosting environments, losing features such as .htaccess and a real mod_rewrite are not even on the table. I'm also not willing to accept the performance hit and connection issues that are inherent with FastCGI, so that means mod_php.
In this particular situation, there are two busy sites, which are the problem.
These are a few ideas I've been thinking about.
1. mod_proxy + nginx: mod_proxy sends static content requests to nginx. This requires two sets of vhost files to be maintained.
2. mod_cache: Caching common static content such as page graphics .css, .js, etc.
3. squid
If you've been down 2 or more of these roads, I could benefit from your experience.
I'm configuring an VPS that's going to serve all static stuff and absolutely no dynamic scripts at all.
What could be the bottle necks with all these static content websites? Can a 256MB VPS handle a static website receiving millions of page views a month?
I'm trying to serve as much gzipped content as possible on my web site. I will gzip dynamic pages on the fly using PHP, and I plan to gzip static content just one time, not to use much CPU, and serve css.gz, .js.gz files, etc... So, I uploaded a test.html file and a .css file that changes the color of the text to red. I gzipped the css file:
%gzip style.css
I also uploaded an .htaccess file with this content:
RewriteEngine on RewriteBase /gzip/ RewriteCond %{HTTP_ACCEPT_ENCODING} gzip RewriteRule ^(([^.]+.)+)css$ /$1css.gz
For now I'm not going to include any gunzipped style sheet, just to make sure my browser picks the gzipped style sheet. I also uploaded a phpinfo.php file to make sure I have mod_gzip. So, here's the list of files I have:
But when I open the test.html file: [url] the style sheet isn't applied. If I upload a regular style.css file, it works fine. It seems the Rewrite rules aren't taken into account. Do you know how I could server the gzipped style sheet instead?
My server in the datacenter has to migrate to new IPs. Is it feasible to add new ip and gateway and have that operating on eth0 -- doing it remotely?
The dc said I can have both IPs concurrently working for the next 10 days or so. But, I'm still unsure if I can safely set the new ip and gateway on the server remotely.
Any help would be appreciated. Of course, I have logged a ticket to see if they will set my new primary ip from the console and all the virtual interfaces ...
But, would like to know for my own information if this process is doable remotely.
I have signed up a new rack and the provider give me the following information:
Service IP address assigned: Default Gateway: 10.0.0.193 Assigned WAN IP: 10.0.0.192/30 LAN IP Block: 172.16.0.192/27
*first three digits of IPs are changed.
In Windows 2003, I can use the LAN IP with Default Gateway and I can browse the net without problem (with warning though). But, when I configure the Cisco switch (2950), it didn't allow me to use gateway that is in different subnet. I have checked the LAN IP Block and it seems that all IPs in that subnet can be used. Could you teach me how to config the switch and the other servers?
im trying to setup a vps server on one of my dedicateds, (for personal use) ive got the vps running and os installed etc but i cannot for the life of me setup networking. i have 2 ips from my datacenter but they havent given me a default gateway ip and dont seem to know what one is so does anyone know how to get the default gateways ip for a ip (the ip i have is in the 66.79.185.xxx group )