IPTables Port Mapping / Forwaring

Sep 7, 2007

I'm not that good at IPTables so bare with me. I think I got the rules correct though but it doesn't work Here is what I am trying to do.

I have a server at let's say 111.222.11.10(I will call this server A) and another at 111.222.11.20(I will call this server B).

These servers are in same datacenter.

What I am trying to do here is when a user accesses port 2000 on server A, I want server A to forward/proxy the port to 2000 at Server B. I have tried the following so far.
Non of them worked.

iptables -t nat -I PREROUTING -p tcp --dport 2000 -j DNAT --to 111.222.11.20:2000
iptables -I FORWARD -p tcp -d 111.222.11.20 --dport 2000 -j ACCEPT

[root@n1-cluster ~]# iptables -t nat -I PREROUTING -p tcp --dport 2000 -j DNAT --to 111.222.10.20:2000
[root@n1-cluster ~]# iptables -t nat -A PREROUTING -p udp --dport 2000 -i eth0 -j DNAT --to 111.222.10.20:2000

iptables -A FORWARD -i eth0 -p tcp --dport 2000 -j ACCEPT
iptables -t nat -A PREROUTING -p tcp -i eth0 --dport 2000 -j DNAT --to-destination 111.222.10.20:2000
Yes, I have done service iptables save and start.
Also iptables -F

Any ideas on what may be wrong?

View 9 Replies


ADVERTISEMENT

How To Block Port 25 Using IPtables?

Apr 13, 2009

For some reason, I want to block port 25 for temporary time while editing the exim config and open it back using iptables -F command.

Anyone can let me know the command to block port 25 using IPtables command.

View 14 Replies View Related

Linux IPTables Logging Packets On A Certain Port

Aug 4, 2008

commands to log packets temporarily for a certain udp port with the IP information ect.

Any help would be appreciated. As for what I am doing, I am trying to find anything wierd or something that stands out from the packets sent from external IP's to my server.

View 3 Replies View Related

After Flush+zero Iptables, Will A New Iptables Ban Work

Jan 5, 2008

I execute the following commands, in the following order:

iptables --flush
iptables --zero
iptables -A INPUT -s 218.65.12.161 -j DROP

will that last command successfully ban that IP until reboot?

If not, what needs to be done? I can't access my site if I don't flush + zero iptables first but I need to be able to ban with iptables.

View 2 Replies View Related

Mapping Subdomains To Different VPS's

Dec 11, 2008

I was wondering if it is possible to host subdomains on different VPS's? Here is what I am trying to do

PrimaryDomain.com -> Hosted on VPS0
|
- Subdomain1.primaryhost.com -> Hosted on VPS1
|
- Subdomain2.primaryhost.com -> Hosted on VPS2

VPS0, VPS1, VPS2 have different IP addresses.

I tried using A records to point subdomains to different VPS but VPS requires a "primary domain" looks like. Do let me know if this is possible. I tried google but not sure what exactly I shoudl be searching for.

View 4 Replies View Related

Domain Mapping

Dec 21, 2007

I have website www.mydomain.com on apache.

I want user when typing that URL it redirect to www.mydomain.com/home immediately.

Do I need to change the DNS to do this, if yes, how? or if I only need to configue Apache do to this.

View 3 Replies View Related

Domain Mapping ..

Dec 24, 2008

I have a new domain for an online store which I am trying to map to a certain web server(launchsplash_com) for just their Launch Page to show up as homepage when my website is accessed (the ecommerce software has its own default homepage, which I prefer not to show up). The registrar for the domain is Godaddy but hosting is done with a different company - Server Intellect.

The issue is mapping my domain to Launchsplash's server does not seem to work. And I am not sure if I am doing the right settings through the host control panel. As per LaunchSplash company's instruction - I create a CNAME record name - www_mydomainname_com and CNAME record data - mydomainname_LaunchSplash_com

Since the domain is not being hosted with Godaddy, the total dns control for making dns changes is disabled in godaddy control panel.

I do not wish to do the forwarding option, since that shows up the forwarded domain name.

View 9 Replies View Related

Is Domain Mapping Good Or Bad?

Apr 9, 2009

If you want to use several domains for your single website, from SEO-reasons or from any other reasons (which?) is it better to forward your domain to that sub-domain or should it be mapped in the DNS in CNAME?

mydomain.com
mydomain.com/nameoftheotherdomain = nameoftheotherdomain.com

It's not the same issue like with Google Apps, whether you should use your own domain, e.g. sites.yourdomain.com or whether you should use the domain offered by Google for your Sites. The reason is that theotherdomain.com is a part of the single website called yourdomain.com, thus, it is not an external website hosted somewhere else.

View 2 Replies View Related

Domain Mapping Clarification

Jun 19, 2009

i currently have a site on a .co.uk domain. my client would like the "main" domain to be .com instead. I should add that BOTH .com and .co.uk will be used.

The company is advertising itself as thesite.com, so people will associate the business with www.thesite.com, not .co.uk.

I have both domains, and I understand domain mapping is used for this purpose, but before I go and screw up anything, could someone please clarify.

Is it possible to "domain map" so that visitors go to www.thesite.com, they will see the website as .com, but the site itself will actually be on the ".co.uk" server.

I don't particuarly want to transfer the site from the .co.uk to the .com and set up a redirect.

I know I could use a redirect .com to .co.uk, but the client specifically wants ".com" to be the site visitors view. (they bought .co.uk and set the site up first, just to be annoying)

View 3 Replies View Related

Mapping User Paths

Nov 1, 2006

I'm not even sure I'm asking this in the right place, but here we go.

We are working on creating some load tests for our system and we need to figure out how a "normal" user navigates our system.

Is there software out there that will show use how a user navigates our system via reading the apache logs? Will awstats do the trick?

View 1 Replies View Related

WHM - Re-mapping Accounts To Their Resellers

Oct 6, 2007

just restored a server from an rsync backup. problem now is that i have a couple of hundred accounts all under root, when they're supposed to be resellers and sub accounts of resellers.

any idea if its just some file which contains all the mappings or do i need to go through all these hundreds of accounts and reassign them?

View 9 Replies View Related

Error Mapping An IP To A Domain In LX Admin [VPS]

May 14, 2009

I already mapped my IP address to a domain but when I tried to access http://myipaddress it still show the LX Admin Default page instead of my site. How can i fix that?

View 2 Replies View Related

Mapping An External Domain To A Subdomain?

Apr 22, 2005

I have a website where users can sign up and create a site. They can access their website by typing username.example.com.

However, I would like to add to this the ability to buy a domain name and point it to username.example.com

so example.com/guestbook.html would translate to username.example.com/guestbook.html (external domain and associated user are mapped in the database)

Do I need my own DNS server for this or is there a simpler solution? Also, how should the database lookup be performed for this to work?

View 0 Replies View Related

Remote Web Folder Mapping Technology - Does It Exist?

Mar 20, 2009

Currently my companies global website “domain.com” is hosted in a shared hosted environment, our own U.S. website “us.domain.com” is hosted at our datacenter.

Here is my question, we have a redesign project. My goal is to lose the “us.domain.com” sub-domain and move our new U.S. site under the "domain.com" domain using a “/us/” folder delineation.

Is it possible with modern web server technology to setup a something like virtual directory/folder, redirect, alias or remote mapping of the “/us/” folder that points to a separate server hosting our U.S. site outside of shared hosting environment for our "domain.com" site, e.g.?

• Domain.com/<global website content/structure > - Hosted at in a shared environment on Web App Server running Coldfusion
• Domain.com/us/<U.S. website content/structure> - Hosted at our datacenter on Web App Server running IBM WebSphere

Unfortunately I cannot merge the two sites together based on the web server technology and lack of budget/resources to accomplish.

View 1 Replies View Related

Linux Server: Mapping Ftp Account As A Drive

Apr 9, 2007

any idea if this is possible? basically what i'd like to do is make a "virtual folder" in my linux box that is actually a connection to an ftp account on another server.

so for e.g. if i say cd /myftp it'll show the contents of that directory as though it was a standard folder, however it is actually connecting to some other machine via ftp?

View 2 Replies View Related

Apache :: Domain Mapping That Don't Involve Wordpress?

May 6, 2015

I used to have a server which had domain mapping via wordpress... a friend of mine had this up for me and every time I added a new website to the same server/ip-address, I just modified the .htaccess for example:

RewriteCond %{HTTP_HOST} !^www.
RewriteCond %{HTTP_HOST} domain.com
RewriteCond $1 !^domain
RewriteRule (.*) /domain/$1 [L]

Anyway, I no longer have this server and as a result, I have websites that are not being mapped correctly, many domains point to the same ip address.

I have tried to use name-based virtual hosts but it seems as if this is being ignored... I did restart Apache by sudo service apache2 restart

I'd really like to get my websites working again without buying multiple ip-addresses.

View 1 Replies View Related

Apache :: Network Hard Drive Mapping

Apr 2, 2014

So I have question regarding apache on windows and hard drives.

I have a virtual rack what i connected all my servers upto, Then I mapped all my servers hard drives together so they can all communicate and share data from each other.

But I have apache installed on 1 server hard drive C:/

Can I run apache from that mapped hard drive on the other servers ? Or would that cause problems ?

Also they are all windows 2008 running the latest apache from here.

View 19 Replies View Related

Shared Hosting Supporting Wildcard Request Mapping On IIS

May 22, 2007

I need a shared host account that can support wildcard mapping of all HTTP requests through the ASP.NET engine. This is required in order to fully support the UrlRewriting techniques I want to use. Anyone know of any affordable hosts that can support this? Of course, as my site grows I'll consider upgrading to a VPS (and further depending on the growth).

View 3 Replies View Related

Apache :: Listen On Port 8080 For IPv4 And On Port 80 For IPv6?

Aug 8, 2013

I'm runnung a server with Apache2 (Apache/2.2.16 (Debian 6.0))

I would like Apache2 listen on port 8080 for IPv4 and on port 80 for IPv6.

This is what I have now:

/etc/apache2/ports.conf

View 4 Replies View Related

Email Server Port- How To Change/add Port For SMTP

Feb 19, 2008

Currently I am using Linux + cPAnel and using the port 25 for email sevrer. Currently we facing 1 problem is, some user's ISP is not support port. May I know how can I add additional port into server and allow users to send mail by different port?

View 1 Replies View Related

Did Port 80 Port To 7080, But Not Working When Login

Jun 21, 2009

I have an office internal website and I opened a port in the gateway of my office (7080) to this website (server )'s 80 port. That makes this website open to public as office has static IP. And then when I view the site from home . it's fine. But when I tried to login, the site is using a pop-up, I guess it's http authentciation, login, I was redirected to a url without my port number any more, that stops my access to the site as obviously I would.

How can I keep my connection/port number ...?

View 2 Replies View Related

Giga Port Vs Mega Port

Jun 18, 2008

about the NIC and switch,

there are giga port vs mega port,

in your experience,do they really be different?

View 14 Replies View Related

Changed SSH Port - How To Add Extra Port To APF

Jun 10, 2007

I recently changed my SSH port, but locked myself out when my APF firewall was installed.

Where would I got to add a custom port inside the APF's config file?

View 3 Replies View Related

Iptables Gone

Aug 4, 2006

I am experiencing a strange problem with iptables: after in activate them, they are gone in a few minutes. For example, I drop traffic from an ip and after few seconds, all rules are flushed without touching anything!

View 2 Replies View Related

How Many IPs Can I Add To IPtables ?

Jan 20, 2008

I need to block about 5000 IPs .. Is it possible to add this amount of IPs to iptables?

I mean ... Will this slow down the machine response?

View 7 Replies View Related

Iptables Or Apf?

May 24, 2007

What do you prefer or what do you think is better, iptables or apf for a firewall?

View 9 Replies View Related

Csf And Iptables

Apr 13, 2009

i install csf on centos,

my server is working but the network is unreachable,

i try to run "service iptables stop",

and the server is unreachable now,

i check from whm,it shows csf is working,

but i ssh the server and type "service iptables status",

it shows "firewall is stopped",

is it correct?

is not,how can i fix the issue?

View 11 Replies View Related

IPTables

Apr 10, 2009

Is there a way for me to whitelist myself or something?

I get up everyday and have to call LSN because my server has blocked me for some reason...

View 10 Replies View Related

Iptables

Feb 4, 2007

If I keep getting spam from a certain IP, can I add that IP to Iptables? Will it stop me receiving spam from that IP? I'm not quite sure how it all works.

Or what is the most effective method to stop spam?

View 14 Replies View Related







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