You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by "btzq (via GitHub)" <gi...@apache.org> on 2024/10/14 13:12:14 UTC

[I] With VR + VNF + L2 Network, the VMs in L2 Network cannot be reached from the Internet (But the opposite is possible) [cloudstack]

btzq opened a new issue, #9791:
URL: https://github.com/apache/cloudstack/issues/9791

   <!--
   Verify first that your issue/request is not already reported on GitHub.
   Also test if the latest release and main branch are affected too.
   Always add information AFTER of these HTML comments, but no need to delete the comments.
   -->
   
   ##### ISSUE TYPE
   <!-- Pick one below and delete the rest -->
    * Bug Report
   
   ##### COMPONENT NAME
   <!--
   Categorize the issue, e.g. API, VR, VPN, UI, etc.
   -->
   ~~~
   VR + VNF
   ~~~
   
   ##### CLOUDSTACK VERSION
   <!--
   New line separated list of affected versions, commit ID for issues on main branch.
   -->
   
   ~~~
   4.19.1
   ~~~
   
   ##### CONFIGURATION
   <!--
   Information about the configuration if relevant, e.g. basic network, advanced networking, etc.  N/A otherwise
   -->
   Advanced Networking
   VPC
   VNF + L2 Network
   
   ##### OS / ENVIRONMENT
   <!--
   Information about the environment if relevant, N/A otherwise
   -->
   
   
   ##### SUMMARY
   <!-- Explain the problem/feature briefly -->
   
   We have 1 VPC and 1 L2 Network connected together with a VNF (PFsense) in between. 
   
   Results Summary:
   - Test 1: From L2 VM (10.26.8.230) to VPC VM (10.26.1.250) - PASS
   - Test 2: From VPC VM (10.26.1.250) to L2 VM (10.26.8.230) - FAILED
   - Test 3: From L2 VM (10.26.8.230) to Private Gateway VM (10.88.5.82) - PASS
   - Test 4: From Private Gateway VM (10.88.5.82) to L2 VM (10.26.8.230) - FAILED
   
   Background:
   We’ve allowed any on the VNF firewall rules as attached in the screenshot below:
   
   ![Screenshot 2024-10-14 at 9 03 26 PM](https://github.com/user-attachments/assets/fcddf19d-3c10-4e12-8571-e7144e5a8ea2)
   
   Traffic is allowed any on 10.26.1.254 interface
   
   ![Screenshot 2024-10-14 at 9 03 55 PM](https://github.com/user-attachments/assets/b4fe623e-c3f8-42ef-9bfe-f30138b934aa)
   
   Traffic is allowed any on 10.26.8.254
   
   We then run some tests. 
   
   Test 1: From L2 VM (10.26.8.230) to VPC VM (10.26.1.250)
   ![Screenshot 2024-10-14 at 9 04 32 PM](https://github.com/user-attachments/assets/0e003313-9e20-4d48-9da4-9f313a11f2bc)
   
   Results: Ping and traceroute test from 10.26.8.230 to 10.26.1.250 works as expected. (PASS)
   
   ![Screenshot 2024-10-14 at 9 05 11 PM](https://github.com/user-attachments/assets/c37a7f27-9a61-49e1-90ca-10dafcf3061a)
   
   Test 2: From VPC VM (10.26.1.250) to L2 VM (10.26.8.230)
   
   ![Screenshot 2024-10-14 at 9 05 32 PM](https://github.com/user-attachments/assets/4d9fde56-11c6-411f-9095-53223fe8e3da)
   
   Results: Ping and traceroute test from 10.26.1.250 to 10.26.8.230 is not possible (FAILED)
   
   ![Screenshot 2024-10-14 at 9 06 01 PM](https://github.com/user-attachments/assets/8f2d9fa8-a4bf-428d-a82f-fd3f29f1d5a0)
   
   Test 3: From L2 VM (10.26.8.230) to Private Gateway VM (10.88.5.82)
   ![Screenshot 2024-10-14 at 9 07 42 PM](https://github.com/user-attachments/assets/94cdf87e-7ab1-408d-b22d-36d1dba36e71)
   Results: Ping and traceroute test from 10.26.8.230 to 10.88.5.82 works as expected (PASS)
   
   Test 4: From Private Gateway VM (10.88.5.82) to L2 VM (10.26.8.230)
   ![Screenshot 2024-10-14 at 9 08 14 PM](https://github.com/user-attachments/assets/96a3fd00-2c6a-47d5-a5f6-8fdbf03ededd)
   
   Results: Ping and traceroute test from 10.88.5.82 to 10.26.8.230 does not work (FAILED)
   ![Screenshot 2024-10-14 at 9 08 36 PM](https://github.com/user-attachments/assets/f2f52757-e0d9-4a5b-beb9-9e084293a244)
   
   We've been trying to debug Tests 2 and 4 for a while now with no sucess. Anyone has any ideas? 
   Or is Cloudstack designed not to allow this to be possible?
   
   
   ##### STEPS TO REPRODUCE
   <!--
   For bugs, show exactly how to reproduce the problem, using a minimal test-case. Use Screenshots if accurate.
   
   For new features, show how the feature would be used.
   -->
   
   <!-- Paste example playbooks or commands between quotes below -->
   ~~~
   NA
   ~~~
   
   <!-- You can also paste gist.github.com links for larger files -->
   
   ##### EXPECTED RESULTS
   <!-- What did you expect to happen when running the steps above? -->
   
   ~~~
   Tests 2 and 4 should be able to work
   ~~~
   
   ##### ACTUAL RESULTS
   <!-- What actually happened? -->
   
   <!-- Paste verbatim command output between quotes below -->
   ~~~
   Tests 2 and 4 does not work
   ~~~
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] With VR + VNF + L2 Network, the VMs in L2 Network cannot be reached from the Internet (But the opposite is possible) [cloudstack]

Posted by "btzq (via GitHub)" <gi...@apache.org>.
btzq commented on issue #9791:
URL: https://github.com/apache/cloudstack/issues/9791#issuecomment-3205132813

   @weizhouapache yes this is still something we need. 
   
   Static Routes sounds like it would solve the problem for us. Ive looked at the PR, does this include a GUI for admins to set the static route onto the Virtual Router?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] With VR + VNF + L2 Network, the VMs in L2 Network cannot be reached from the Internet (But the opposite is possible) [cloudstack]

Posted by "btzq (via GitHub)" <gi...@apache.org>.
btzq commented on issue #9791:
URL: https://github.com/apache/cloudstack/issues/9791#issuecomment-4159979045

   Hi @weizhouapache , is Static Routes supported in VPCs where the router is in normal NAT-ed mode?
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] With VR + VNF + L2 Network, the VMs in L2 Network cannot be reached from the Internet (But the opposite is possible) [cloudstack]

Posted by "btzq (via GitHub)" <gi...@apache.org>.
btzq commented on issue #9791:
URL: https://github.com/apache/cloudstack/issues/9791#issuecomment-2691211826

   Hi @weizhouapache , apologies ive missed your comment. 
   
   We had some growing requests from users where they want to implement a 'Hub and Spoke' architecture such as:
   - https://cloud.google.com/architecture/deploy-hub-spoke-vpc-network-topology
   - https://learn.microsoft.com/en-us/azure/architecture/networking/architecture/hub-spoke
   
   And the 'Hub', needs to have some form of a VM Firewall (FortinetVMFW, PfsenseVMFW) to be the first point of contact to filter any incoming/outgoing traffic. To my knowledege, this is best done using L2 networks and not possible in VPC/Isolated Networks because Static Route is not supported in this network offering. But, our users want to have VPC/Isolated Network as the 'Hub' as they dont want to use L2 Networks. 
   
   I guess its what i have reported in this ticket. I really hope 4.21 resolves this at it would really help!!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] With VR + VNF + L2 Network, the VMs in L2 Network cannot be reached from the Internet (But the opposite is possible) [cloudstack]

Posted by "btzq (via GitHub)" <gi...@apache.org>.
btzq commented on issue #9791:
URL: https://github.com/apache/cloudstack/issues/9791#issuecomment-2413457009

   @weizhouapache i see, looking forward to this enhancement then! 
   
   Should i close this ticket? Or leave it open to track this request?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] With VR + VNF + L2 Network, the VMs in L2 Network cannot be reached from the Internet (But the opposite is possible) [cloudstack]

Posted by "weizhouapache (via GitHub)" <gi...@apache.org>.
weizhouapache commented on issue #9791:
URL: https://github.com/apache/cloudstack/issues/9791#issuecomment-2411409129

   @btzq 
   it looks like a route  to 10.26.8.0/254 is missing in the VPC VR.
   you can retry  aftering adding a route manually.
   ```
   ip route add 10.26.8.0/24 via 10.26.1.254
   ```
   
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] With VR + VNF + L2 Network, the VMs in L2 Network cannot be reached from the Internet (But the opposite is possible) [cloudstack]

Posted by "weizhouapache (via GitHub)" <gi...@apache.org>.
weizhouapache commented on issue #9791:
URL: https://github.com/apache/cloudstack/issues/9791#issuecomment-4164316804

   > Hi @weizhouapache , is Static Routes supported in VPCs where the router is in normal NAT-ed mode?
   > 
   
   Yes. @btzq 
   It is supposed to support VPC with NATTED mode.
   
   Actually I am not sure if Routed VPC is supported.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] With VR + VNF + L2 Network, the VMs in L2 Network cannot be reached from the Internet (But the opposite is possible) [cloudstack]

Posted by "weizhouapache (via GitHub)" <gi...@apache.org>.
weizhouapache commented on issue #9791:
URL: https://github.com/apache/cloudstack/issues/9791#issuecomment-3205240413

   > [@weizhouapache](https://github.com/weizhouapache) yes this is still something we need.
   > 
   > Static Routes sounds like it would solve the problem for us. Ive looked at the PR, does this include a GUI for admins to set the static route onto the Virtual Router?
   
   yes @btzq 
   
   please note the next hop should be a private ip in the VPC cidr or a public ip in the same range as VR


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] With VR + VNF + L2 Network, the VMs in L2 Network cannot be reached from the Internet (But the opposite is possible) [cloudstack]

Posted by "DaanHoogland (via GitHub)" <gi...@apache.org>.
DaanHoogland commented on issue #9791:
URL: https://github.com/apache/cloudstack/issues/9791#issuecomment-5415193737

   @weizhouapache , will there be any change following on this?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] With VR + VNF + L2 Network, the VMs in L2 Network cannot be reached from the Internet (But the opposite is possible) [cloudstack]

Posted by "btzq (via GitHub)" <gi...@apache.org>.
btzq commented on issue #9791:
URL: https://github.com/apache/cloudstack/issues/9791#issuecomment-2416961818

   @weizhouapache 
   We tried your solution and it did not work. 
   
   After we've added the route, the VR is able to reach the destination, but source to destination still wouldnt work.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] With VR + VNF + L2 Network, the VMs in L2 Network cannot be reached from the Internet (But the opposite is possible) [cloudstack]

Posted by "weizhouapache (via GitHub)" <gi...@apache.org>.
weizhouapache commented on issue #9791:
URL: https://github.com/apache/cloudstack/issues/9791#issuecomment-2417186162

   > @weizhouapache 
   > We tried your solution and it did not work. 
   > 
   > After we've added the route, the VR is able to reach the destination, but source to destination still wouldnt work.
   
   What are the network acl rules of the vpc tier ? Allow all ?
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] With VR + VNF + L2 Network, the VMs in L2 Network cannot be reached from the Internet (But the opposite is possible) [cloudstack]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #9791:
URL: https://github.com/apache/cloudstack/issues/9791#issuecomment-5404049712

   This issue is stale because it has been open for 120 days with no activity. It may be removed by administrators of this project at any time. Remove the stale label or comment to request for removal of it to prevent this.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] With VR + VNF + L2 Network, the VMs in L2 Network cannot be reached from the Internet (But the opposite is possible) [cloudstack]

Posted by "btzq (via GitHub)" <gi...@apache.org>.
btzq commented on issue #9791:
URL: https://github.com/apache/cloudstack/issues/9791#issuecomment-2413317695

   Hey @weizhouapache , but this would require operator to manually intervene, right?
   And if the router is destroyed (eg. CleanUp), this setting will dissapear, and it will need to be re-added manually. 
   
   Is there another way to do it?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] With VR + VNF + L2 Network, the VMs in L2 Network cannot be reached from the Internet (But the opposite is possible) [cloudstack]

Posted by "weizhouapache (via GitHub)" <gi...@apache.org>.
weizhouapache commented on issue #9791:
URL: https://github.com/apache/cloudstack/issues/9791#issuecomment-2413436233

   > Hey @weizhouapache , but this would require operator to manually intervene, right? And if the router is destroyed (eg. CleanUp), this setting will dissapear, and it will need to be re-added manually.
   
   @btzq  correct.
   
   > 
   > Is there another way to do it?
   
   no. currently static routes only applies on VPC private gateway.
   https://cloudstack.apache.org/api/apidocs-4.19/apis/createStaticRoute.html
   
   We have plan to extend it to support VPC and isolated networks. 
   probably next major release (4.21).
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] With VR + VNF + L2 Network, the VMs in L2 Network cannot be reached from the Internet (But the opposite is possible) [cloudstack]

Posted by "weizhouapache (via GitHub)" <gi...@apache.org>.
weizhouapache commented on issue #9791:
URL: https://github.com/apache/cloudstack/issues/9791#issuecomment-2413481296

   > @weizhouapache i see, looking forward to this enhancement then!
   > 
   > Should i close this ticket? Or leave it open to track this request?
   
   you can keep it open.
   
   btw: have you tested the manual static route ? does it work in your case ?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] With VR + VNF + L2 Network, the VMs in L2 Network cannot be reached from the Internet (But the opposite is possible) [cloudstack]

Posted by "weizhouapache (via GitHub)" <gi...@apache.org>.
weizhouapache commented on issue #9791:
URL: https://github.com/apache/cloudstack/issues/9791#issuecomment-3204898663

   @btzq 
   any update on this ?
   
   the static route feature is available in ACS 4.21 (see #10458)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org