[
https://issues.apache.org/jira/browse/CLOUDSTACK-4535?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13852622#comment-13852622
]
ASF subversion and git services commented on CLOUDSTACK-4535:
-------------------------------------------------------------
Commit bcedbe698afd6a4372348de678f63c2c6071e9fc in branch refs/heads/4.3 from
[~jayapal]
[ https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;h=bcedbe6 ]
CLOUDSTACK-4535 Fixed issue in PF in connecting from private nw when public and
private ports are different
> In Virtual Router Port Forwarding Service, the connection is not established
> when client on the same private network
> --------------------------------------------------------------------------------------------------------------------
>
> Key: CLOUDSTACK-4535
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-4535
> Project: CloudStack
> Issue Type: Bug
> Security Level: Public(Anyone can view this level - this is the
> default.)
> Components: Virtual Router
> Affects Versions: pre-4.0.0, 4.0.0, 4.0.1, 4.0.2, 4.1.0, 4.1.1
> Environment: cs4.1.1
> Reporter: sie,chih-wei
> Assignee: Jayapal Reddy
> Priority: Minor
> Fix For: 4.3.0
>
>
> When a client on the same internal network as the Port Forwarding requests a
> connection to the service's public IP address & port , the connection breaks.
> EX : Port Forwarding for TCP Public_IP:1234 to Private_IP:22
> a client(in private network) do => $ssh root@Public_IP -p 1234 => $ ...time
> out ...
> Solution : In Virtual Router do
> $ sudo iptables -t nat -D POSTROUTING -s Private_CIDR -p tcp --dport
> 1234(public port) -d Private_IP -j SNAT -o eth0 --to-source
> $ sudo iptables -t nat -I POSTROUTING -s Private_CIDR -p tcp --dport
> 22(private port) -d Private_IP -j SNAT -o eth0 --to-source
> https://github.com/apache/cloudstack/blob/master/patches/systemvm/debian/config/root/firewall.sh
> 74 : (sudo iptables -t nat $op POSTROUTING -s $vrGuestIPNetwork -p $prot
> --dport ***$port*** -d $guestVmIp -j SNAT -o eth0 --to-source $vrGuestIP &>>
> $OUTFILE || [ "$op" == "-D" ])
> have to change ?? =>
> (sudo iptables -t nat $op POSTROUTING -s $vrGuestIPNetwork -p $prot --dport
> ***$guestPort*** -d $guestVmIp -j SNAT -o eth0 --to-source $vrGuestIP &>>
> $OUTFILE || [ "$op" == "-D" ])
> Thanks.
--
This message was sent by Atlassian JIRA
(v6.1.4#6159)