cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrija Panic (JIRA)" <>
Subject [jira] [Commented] (CLOUDSTACK-8451) Static Nat show wrong remote IP in VM behind VPC
Date Tue, 19 May 2015 08:34:02 GMT


Andrija Panic commented on CLOUDSTACK-8451:

Hi Rohit. Actually we tested it and it seems that absolutely all works fine. The only thing
we didnt test so far with this change is site to site vpn, but I expect that will be fine
as well.

> Static Nat show wrong remote IP in VM behind VPC
> ------------------------------------------------
>                 Key: CLOUDSTACK-8451
>                 URL:
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>          Components: KVM, Network Controller, Virtual Router
>    Affects Versions: 4.4.3, 4.3.2, 4.5.1
>         Environment: Ubuntu 14.04, ACS 4.5.1-SNAPSHOT
>            Reporter: Andrija Panic
> When configuring Port FOrwarding or Static NAT on VPC VR, and connect from outside world
to VPC IP address, traffic gets forwarded to VM behind VPC.
> But if you run "netstat -antup | grep $PORT" (where port is i.e. ssh port) - given result
will show that remote connections come from the Source NAT IP of the VR, instead of the real
remote client IP.
> Example:
> private VM:
> Source NAT IP on VPC VR:
> Additional Public IP on VPC VR.
> Remote client public IP: (external to VPC)
> Test:
> from SSH to port 22 (or any other port)
> inside do "netstat -antup | grep 22"
> Result: Remote IP show is instead of
> We found a solution (somwhat tested, and not sure if this would break anything...)
> Problem is in VRs iptables NAT table, POSTROUTING chain, rule:
> SNAT all -- * eth2 to:
> where is public IP of VR
> eth2: is Public Interface of VR
> When this rule is deleted, NAT is working fine.
> This is serious issue for anyone using VPC, since there is no way to see real remote
client IP, and this no firewall funtionality inside VM, SIP doesnt work, web server logs are
useless etc.
> I also experienced this problem with 4.3.x releases.

This message was sent by Atlassian JIRA

View raw message