Linux Iptable Rules - Redirect Web Server

Jul 24, 2008

I am having an issue with redirecting our local (inside network) traffic to our new web server via iptables in Linux. The setup we have right now is a Linux server (old web server and current firewall) and a new Windows 2003 server for the new web server.

Linux IP: 192.168.0.1
New Server IP: 192.168.0.22

-A PREROUTING -i eth0 -p tcp -m tcp --dport 80 -j DNAT --to-destination 192.168.0.22:80

The above works great for everyone outside the office but the internal network still sees the old web server (same box as this firewall).

I thought I could redirect the older server's ip to the new server for the internal office but this did nothing.

-A PREROUTING -p tcp -d 192.168.0.1 --dport 80 -j DNAT --to-destination 192.168.0.22:80

I then changed the 192.168.0.1 to our real ip number and this might be closer but the website now times out (packets getting lost maybe?).

View 3 Replies


ADVERTISEMENT

How Can I Remove List Of Blocking IPs On Iptable On My Server

Feb 1, 2008

how can i remove list of blocking IPs on iptable on my server its over 100 IPs how can i remove it?

View 2 Replies View Related

Plesk 12.x / Linux :: Copy Firewall Rules From One Server To Another

Oct 3, 2014

Plesk 12.x
CentOS 6.5

Any method for copying the Firewall (extension) rules from one server to another.

View 2 Replies View Related

Iptable

Feb 27, 2007

We run a (remote) dedicated Fedora Core 2 server from 1and1.com

Lately.. at around Midnight or so.. Iptables seems to block out my work IPaddress. Not sure why.

I'm a complete newb to IPTABLES.. so, unfortuantely, the only way I can get it working again is by typing "iptables --flush". I realize that this removes all rules.

I've also tried entering "iptables -A INPUT -s IP-ADDRESS -j ACCEPT" but this doesn't seem to do the trick. Which is odd, because we're on a static IP address here.

View 1 Replies View Related

How To Find How Many IP Address Blocked In Iptable

Jul 29, 2008

how to find how many ip blocked in ip table?also tell me how clear the ip table and find what are ips blocked in ip table

View 5 Replies View Related

Plesk 12.x / Linux :: ModSecurity With Atomic Rules

Jun 9, 2015

I have a Real Time Web Application Security Rules Subscription. I change the ModSecurity Rule Setup and add the Atomic LoginData to Plesk. All looks fine but the ModSecurity Log is now empty.

- Debian 7 with all Updates
- Plesk Version 12.0.18 Update #49

Output from: ~# aum -df upgrade asl

[URL] ....

View 1 Replies View Related

Plesk 11.x / Linux :: Firewalld Rules With CentOS 7?

Sep 9, 2014

Why isnt Plesk 12 configuring firewalld under CentOS 7 correctly? We have to manuella enable port 8443 and all other ports manually with firewall-cmd..

View 1 Replies View Related

Plesk 11.x / Linux :: Update The Rules Within Spamassassin?

May 18, 2014

I am running Plesk 11.5.30 Update #44, Postfix 2.8.14 and Spamassassin 3.3.1 on a Red Hat Enterprise Linux Server 6.5 server. I am looking to update the rules within Spamassassin. I have had a bit of a look and see that a crontab has been created but its a bash script with a comment saying it has been disabled by psa-spamassassin package (/etc/cron.d/sa-update).

Code:

#!/bin/sh
# This task was disabled by psa-spamassassin package
exit 0

Is there a reason why it has been disabled by Plesk? If I update the rules, will it break something?

I have recently added into Postfix RBLs to reduce the amount of SPAM my customers is getting and this is my next step in a list of things that I would like to change.

View 1 Replies View Related

Plesk 12.x / Linux :: Modify Firewall Rules Never Completes

Nov 9, 2014

Applying Plesk firewall changes? I make my change, apply and get to:

Status: Applying in progress. If your browser shows connection error messages, or if this screen does not disappear in more than 30 seconds, go to previous page.

And there things stay. Going back to look at the firewall I can see the change haven't been applied, and going to apply just results in the same. No error, just no anything. It also took numerous attempts to get firewall modification to be swtich on although finally at about the eighth attempt changes were enabled. Only now I can't apply them ...

View 5 Replies View Related

Plesk 12.x / Linux :: Firewall Not Generating Rules Correctly

Aug 17, 2014

I am using the plesk firewall and trying to set up SSH rule which only allows from my IP but deny from everywhere else. In previous versions this worked fine by adding an ip selecting Allow from selected sources, deny from others and the icon in the rules would be orange with the lines

allow incoming from xxx.xxx.xxx.xx
Deny incoming from all others

However this no longer works as the deny from all others is not appearing and is not being generated in the iptables by plesk.

View 1 Replies View Related

Plesk 12.x / Linux :: Enable Firewall Rules Management

Jul 2, 2015

I just have installed plesk panel and when i get to the "Firewall" tool, then clicked on "Enable Firewall Rules Management", proftpd has stopped working properly.URLs....I have preinstalled the server 2 times, and every time i try to edit the firewall rules, proftpd got broken.

View 10 Replies View Related

Warning: Unknown Iptable Module: Ipt_owner, Skipped

Jul 25, 2007

ssh user don`t work i go to command center and run wget .... and vps take Warning: Unknown iptable module: ipt_owner, skipped i use of hypervm(openvz)

View 7 Replies View Related

Plesk 11.x / Linux :: Export / Import Firewall Rules With Panel

Jul 25, 2014

I would like to know if is possible to export Plesk firewall rules from Plesk 9.5.4 to Plesk 11.5.30 with panel. 

View 2 Replies View Related

Plesk 12.x / Linux :: How To Redirect Http To Https

Mar 25, 2015

I have bought ssl certificate but if I open my site I think it is redirect to http because I dont see https. I use nginx like web server.

View 13 Replies View Related

Plesk 12.x / Linux :: Subdomains Redirect Www Prefix

Jul 15, 2015

We are starting to migrate our servers to Plesk and are building all necessary processes with the plesk xml api.

If I create a subdomain via api

Code:
<subdomain>
<add>
<parent>domain.com</parent>
<name>example</name>
<property>
<name>www_root</name>
<value>httpdocs/web/</value>
</property>
</add>
</subdomain>

The vhost configuration at apache gets this part

Code:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTP_HOST} ^subdomain.domain.com$ [NC]
RewriteRule ^(.*)$ http://www.subdomain.domain.com$1 [L,R=301]
</IfModule>

So every subdomain is redirected to prefix www. But if I create the subdomain via plesk panel, the mod_rewrite isnt created, as i want. I also tried reconfigure-all, but this rewrite part is always active. I have no possibility in plesk 12.0.18 to set the setting for www prefix like at normal sites. So what can i do to prevent it and where can i change it afterwards?

View 1 Replies View Related

Plesk 11.x / Linux :: How To Redirect HTTPS To HTTP

Jul 18, 2014

how can I make a redirect traffic to the site that I have over HTTPS in HTTP? Disabling SSL 404 using Plesk 11 with nginx + php-pfm

View 2 Replies View Related

Plesk 12.x / Linux :: Webstats Stuck In A Redirect Loop?

Mar 29, 2015

I am trying to access my web stats - AWStats is the one it is configured for.

But when I click to go to web stats a popup opens that gets stuck in a redirect loop so I cannot access them.

The url is right, like this, but with my domain : [URL]

View 11 Replies View Related

Plesk 12.x / Linux :: Redirect On Automated Login And HTTP Referrer

Oct 21, 2014

I'm trying to redirect users to database/mail management pages with automatic login link, while logging in part works ok, I have issues with redirections.

Plesk is installed on different server than my site, and if I try to use "success_redirect_url" param in link url, it will show this error "Original link and target URL should be on the same domain."

It works ok if I prevent browser from sending http referrer to plesk, but I'm not sure if it will work for all user as this depends on their browser.

Is this a bug? Is there a workaround that would not depend on used browser?

View 14 Replies View Related

Plesk 12.x / Linux :: Redirect From Http To Https Wrong Hostname?

Nov 28, 2014

the hostname is www.domain.com also in the serversettings of plesk. When we go to http://www.domain.com:8443 we become redirected to https://www:8443. The only way to connect to plesk is to use https the redirect from http doesnt work.

View 1 Replies View Related

Plesk 12.x / Linux :: New Install - All Domains Redirect To Landing Page?

Mar 5, 2015

Every domain that I have added just goes to the default Plesk landing page. I have:

* Added them as new subscriptions
* Added domains to a current subscription
* Verified that the index.html file is deleted
* Verified that vhosts is pointing to proper directory
* Confirmed that sites work when clicking 'preview'

If it matters, this is an Ubuntu install.

View 2 Replies View Related

Plesk 11.x / Linux :: Https Redirect To Http After Installing SSL Certificate

May 15, 2014

After installing a RapidSSL certificate in a subdomain, https redirects automatically to http,

Plesk 11.5 with debian and last version openssl

Why https redirect to http when I setup the certificate?

View 1 Replies View Related

Plesk 12.x / Linux :: Subdomains Redirect To Primary Domain After Repairing Installation

Jan 23, 2015

Up until a week ago we had some troubles with package dependencies on our dedicated server running on Ubuntu 14.04.1. Plesk was totally out of reach, displaying 502 Bad Gateway pages and some other weird error on login_up.php3.

I fixed the dependencies by removing a lot of packages (including Plesk) and finally managed to reinstall Plesk using the autoinstaller, then repaired it using "/usr/local/psa/bootstrapper/pp12.0.18-bootstrapper/bootstrapper.sh" (IIRC this whole bootstrapper folder was not present before reinstallation).

Now, after restoring our data from a backup pretty much everything works except for the subdomains. They all redirect to the primary domain's vhost (307 Redirect) for some reason.

"/var/log/apache2/access.log" shows the following after issuing a HTTP request to any subdomain:

Code:
<ip> - - [23/Jan/2015:23:15:31 +0100] "GET / HTTP/1.1" 307 244 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:35.0) Gecko/20100101 Firefox/35.0"
<ip> - - [23/Jan/2015:23:15:31 +0100] "GET / HTTP/1.1" 200 13397 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:35.0) Gecko/20100101 Firefox/35.0"

I have tried enabling and disabling nginx, it did not work. Then I just kept it disabled because it makes our forum think that everyone has the server's IP (because of the reverse proxy thing I assume).

Oh, and I should say: using HTTPS anywhere just gets me a 502 Bad Gateway error.

View 7 Replies View Related

Plesk 12.x / Linux :: Creating Lot Of Email Address With Redirect And Send Copy To

Nov 28, 2014

Under plesk 12.0.18, I would like to create thousand email address with redirect and send copy to. Its a long work to do.

Is there a solution to create all these email via an import csv, xls or else ?

View 2 Replies View Related

Apache :: Redirect - Internal Server Through External Server

Oct 7, 2014

I have a -I think- common issue, one external server available from internet and an internal server for local only.

I want that to ask for [URL] ....

I can get the content of an internal server. For this I tried this at httpd.conf:

Redirect /site http://in.ter.nal.ip/site

but browser changes to internal IP and obviously I can't reach it.

So, I need that when external server detects that I want to see internal server content, it ask to internal and external itself answers.

View 2 Replies View Related

How Do U Redirect A Folder To Another Server

Mar 3, 2008

I'm hosting a site for a organization but using our own servers. Problem is that they did not want to use a subdomain link to our server but instead wants the server to appear as www(dot)abcdefg(dot)com/ourserver/

can this be done.

Currently my options are :

1) Force them to use sub domains and redirect

2) HTML "Frame" their website to ours (ungraceful method)

3) Truely Redirect it to our server by some means...

View 8 Replies View Related

Windows Server Redirect

Dec 13, 2008

I recently signed up for a new Verio Windows shared hosting account for the purpose of setting up multiple web sites for my family. At the same time, I moved 12 domain names I was holding under the new primary domain name in this hosting plan for ease of managing my accounts. The hosting plan allows up to 6 web sites to be published, and I do not plan on doing anything with the remaining domain names at this time. Here's the issue. I uploaded an index file to the primary domain name. Now, every other domain name, if entered in a web browser, brings up the index page in the primary domain name.

As I understand it, because this is a windows server, I can't use an .htaccess file to redirect all the domains I just want a placeholder for. Verio can't help me so I am looking for a relatively easy solution. Apparently, the server has a URL Rewrite (ISAPI_Rewrite 3) tool to add configurations from Apache to IIS by creating .htaccess files, but this is way over my head.

View 6 Replies View Related

Redirect To Backup Server Automatically

Jun 11, 2009

I have a server in a country (Location 1) and I have my company website on it and in this country the connection is very fast but not very stable so I have the same website on another server (Location 2) as a backup server so I want to do is as the following:

- www.mywebsite.com > Website loads from my Server at Location 1.

- Server at Location 1 is down.

- www.mywebsite.com > Website loads from my Server at Location 2.

- Server at Location 1 is back working.

- www.mywebsite.com > Website loads from my server at Location 1.

How can I do this in DNS options?

Also Can you suggest an easy way to do realtime backup from the server at Location 1 to Location 2 so that any changes made on Location 1 are cloned on Location 2?

View 14 Replies View Related

Redirect / Rewrite To An External Server

Oct 27, 2009

app and content are separate physical machines

I want [url]to be processed by app directly, which it's doing now

I want [url]or [url]to display content from content, either directly or through a hidden/stealth redirect.

How can this be accomplished? How else can I have one URL serve from two different servers other than using subdomains?

View 1 Replies View Related

Apache :: Need To Redirect Root Of Server

Oct 9, 2014

creating a basic redirect. What I need is to redirect the root of my server 173.x.x.x to a file called test.php in the root of my folder.example: when I go to http://173.x.x.x I get redirected to http://173.x.x.x/test.php..

View 3 Replies View Related

HTTP To HTTPS Redirect On Zeus Web Server

Jun 16, 2009

I have done this with .htaccess on apche but I am looking to do HTTP to HTTPS redirect for all requests on Zeus server using rewite.script

what I want basically is that all request to [url]goes to [url]

View 0 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved