SlideShare une entreprise Scribd logo
1  sur  12
Télécharger pour lire hors ligne
Windows Azure Virtual Network
with between regions
Japan Windows Azure User Group
Kentaro Aoki
@kekekekenta
October 24, 2013
Virtual Networks
Windows Azure
East Asia

Windows Azure
West US

vn-asia-gw.cloudapp.net
(207.46.134.21)

vn-us-gw.cloudapp.net
(168.61.66.238)

vn-asia
(10.20.0.0/16)

vn-us
(10.10.0.0/16)

vn-asia-vm
Ubuntu VM
10.20.0.5

GATEWAY
(static routing)
207.46.137.55

vn-us-gw
Ubuntu VPN GW
10.10.0.4

vn-us-vm
Ubuntu VM
10.10.0.5

internet
vn-asia-gw
Ubuntu VPN GW
10.20.0.4

GATEWAY
(static routing)
168.61.64.182

2
Using Network Address Translation
Windows Azure
East Asia

Windows Azure
West US

vn-asia-gw.cloudapp.net
(207.46.134.21)

vn-us-gw.cloudapp.net
(168.61.66.238)

vn-asia
(10.20.0.0/16)

vn-us
(10.10.0.0/16)

vn-asia-vm
Ubuntu VM
10.20.0.5

GATEWAY
(static routing)
207.46.137.55

vn-us-gw
Ubuntu VPN GW
10.10.0.4

internet
vn-asia-gw
Ubuntu VPN GW
NAT (Masquerading)
10.20.0.4

vn-us-vm
Ubuntu VM
10.10.0.5

NAT (Masquerading)

GATEWAY
(static routing)
168.61.64.182

3
Virtual Network Settings
Windows Azure
East Asia

Windows Azure
West US

4
VPN Configurations for the vn-asia-gw (1)
•

Create New Virtual Machine from Azure Portal
– Ubuntu Server 12.04 LTS

•

Install IP-Sec Software on Ubuntu
– $sudo apt-get install openswan

•

Setup IP-Sec Nat-Traversal
– $sudo vi /etc/ipsec.conf
• Config setup
•
protostack=netkey
•
nat_traversal=yes
•
virtual_private=%v4:10.20.0.0/16
•
oe=off
• include /etc/ipsec.d/*.conf
5
VPN Configurations for the vn-asia-gw (2)
•

Setup VPN Information
– $sudo vi /etc/ipsec.d/azure-us.conf
• conn azure-us
•
authby=secret
•
auto=start
•
type=tunnel
•
left=10.20.0.4
•
leftsubnet=10.20.0.0/16
•
leftnexthop=%defaultroute
•
right=168.61.64.182
•
rightsubnet=10.10.0.0/16
•
ike=aes128-sha1-modp1024
•
esp=aes128-sha1
•
pfs=no

6
VPN Configurations for the vn-asia-gw (3)
• Setup Secret Key
– $sudo vi /etc /ipec.secrets
• 10.20.0.4 168.61.64.182 : PSK "krOurXxXX6…XXX“

• Enable ipv4 forwarding
– $sudo vi /etc /sysctl.conf
• net.ipv4.ip_forward=1

– $sudo sysctl -p /etc /sysctl.conf

• Enable IP-Sec
– $sudo service ipsec restart

7
VPN Configurations for the vn-asia-gw (4)
• Setup Firewall for SSH
– $sudo ufw allow proto tcp to any port 22

• Setup Firewall for IP-Sec NAT Traversal
– $sudo ufw allow proto udp to any port 500
– $sudo ufw allow proto udp to any port 4500

• Enable ipv4 forwarding for NAT
– $sudo vi /etc /default/ufw
• DEFAULT_FORWARD_POLICY="ACCEPT“

8
VPN Configurations for the vn-asia-gw (5)
• Setup NAT Rule
– $sudo vi /etc /ufw/before.rules (add following rule to the top)
• # nat Table rules
• *nat
• :POSTROUTING ACCEPT [0:0]
• # Forward traffic from eth1 through eth0.
• -A POSTROUTING -s 10.10.0.0/16 -o eth0 -j MASQUERADE

• # don't delete the 'COMMIT' line or these nat table rules won't be
processed
• COMMIT

9
VPN Configurations for the vn-asia-gw (6)
• Enable ufw (aka iptables)
– $sudo ufw disable && sudo ufw enable

10
Ping through the VPN tunnel
Windows Azure
East Asia

Windows Azure
West US

11
Articles
• VPN connection in the region between the Windows Azure
– http://kentablog.cluscore.com/2013/10/windows-azurevpn.html

• Research ed.
– http://kentablog.cluscore.com/2013/10/creating-site-to-sitevpn-with-regions.html

12

Contenu connexe

En vedette

Sumo Logic Quickstart - Nv 2016
Sumo Logic Quickstart - Nv 2016Sumo Logic Quickstart - Nv 2016
Sumo Logic Quickstart - Nv 2016Sumo Logic
 
Play Framework - Toulouse JUG - nov 2011
Play Framework - Toulouse JUG - nov 2011Play Framework - Toulouse JUG - nov 2011
Play Framework - Toulouse JUG - nov 2011Sylvain Wallez
 
Four Graphics credentials
Four Graphics credentialsFour Graphics credentials
Four Graphics credentialsEmile Melki
 
Lambda Architecture and open source technology stack for real time big data
Lambda Architecture and open source technology stack for real time big dataLambda Architecture and open source technology stack for real time big data
Lambda Architecture and open source technology stack for real time big dataTrieu Nguyen
 
Introducing the Big Data Ecosystem with Caserta Concepts & Talend
Introducing the Big Data Ecosystem with Caserta Concepts & TalendIntroducing the Big Data Ecosystem with Caserta Concepts & Talend
Introducing the Big Data Ecosystem with Caserta Concepts & TalendCaserta
 
Building an ai with raspberry pi
Building an ai with raspberry piBuilding an ai with raspberry pi
Building an ai with raspberry piHaesung Lee
 
Dataiku pig - hive - cascading
Dataiku   pig - hive - cascadingDataiku   pig - hive - cascading
Dataiku pig - hive - cascadingDataiku
 
Technical Radar (Chinese version) 2014-06
Technical Radar (Chinese version) 2014-06Technical Radar (Chinese version) 2014-06
Technical Radar (Chinese version) 2014-06Freyr Lin
 
Nano Server First Step
Nano Server First StepNano Server First Step
Nano Server First StepKazuki Takai
 
1524 how ibm's big data solution can help you gain insight into your data cen...
1524 how ibm's big data solution can help you gain insight into your data cen...1524 how ibm's big data solution can help you gain insight into your data cen...
1524 how ibm's big data solution can help you gain insight into your data cen...IBM
 
Graylog for open stack 3 steps to know why
Graylog for open stack    3 steps to know whyGraylog for open stack    3 steps to know why
Graylog for open stack 3 steps to know whyMạnh Đinh
 
Agile Operations Keynote: Redefine the Role of IT Operations With Digital Tra...
Agile Operations Keynote: Redefine the Role of IT Operations With Digital Tra...Agile Operations Keynote: Redefine the Role of IT Operations With Digital Tra...
Agile Operations Keynote: Redefine the Role of IT Operations With Digital Tra...CA Technologies
 
Next Generation Data Center Strategies
Next Generation Data Center StrategiesNext Generation Data Center Strategies
Next Generation Data Center StrategiesVenkat Nambiyur
 
Solr At Scale For Time-Oriented Data: Presented by Brett Hoerner, Rocana
Solr At Scale For Time-Oriented Data: Presented by Brett Hoerner, RocanaSolr At Scale For Time-Oriented Data: Presented by Brett Hoerner, Rocana
Solr At Scale For Time-Oriented Data: Presented by Brett Hoerner, RocanaLucidworks
 

En vedette (16)

Sumo Logic Quickstart - Nv 2016
Sumo Logic Quickstart - Nv 2016Sumo Logic Quickstart - Nv 2016
Sumo Logic Quickstart - Nv 2016
 
Play Framework - Toulouse JUG - nov 2011
Play Framework - Toulouse JUG - nov 2011Play Framework - Toulouse JUG - nov 2011
Play Framework - Toulouse JUG - nov 2011
 
Four Graphics credentials
Four Graphics credentialsFour Graphics credentials
Four Graphics credentials
 
Lambda Architecture and open source technology stack for real time big data
Lambda Architecture and open source technology stack for real time big dataLambda Architecture and open source technology stack for real time big data
Lambda Architecture and open source technology stack for real time big data
 
Water resources
Water resourcesWater resources
Water resources
 
Introducing the Big Data Ecosystem with Caserta Concepts & Talend
Introducing the Big Data Ecosystem with Caserta Concepts & TalendIntroducing the Big Data Ecosystem with Caserta Concepts & Talend
Introducing the Big Data Ecosystem with Caserta Concepts & Talend
 
Building an ai with raspberry pi
Building an ai with raspberry piBuilding an ai with raspberry pi
Building an ai with raspberry pi
 
Dataiku pig - hive - cascading
Dataiku   pig - hive - cascadingDataiku   pig - hive - cascading
Dataiku pig - hive - cascading
 
Click or clunk
Click or clunkClick or clunk
Click or clunk
 
Technical Radar (Chinese version) 2014-06
Technical Radar (Chinese version) 2014-06Technical Radar (Chinese version) 2014-06
Technical Radar (Chinese version) 2014-06
 
Nano Server First Step
Nano Server First StepNano Server First Step
Nano Server First Step
 
1524 how ibm's big data solution can help you gain insight into your data cen...
1524 how ibm's big data solution can help you gain insight into your data cen...1524 how ibm's big data solution can help you gain insight into your data cen...
1524 how ibm's big data solution can help you gain insight into your data cen...
 
Graylog for open stack 3 steps to know why
Graylog for open stack    3 steps to know whyGraylog for open stack    3 steps to know why
Graylog for open stack 3 steps to know why
 
Agile Operations Keynote: Redefine the Role of IT Operations With Digital Tra...
Agile Operations Keynote: Redefine the Role of IT Operations With Digital Tra...Agile Operations Keynote: Redefine the Role of IT Operations With Digital Tra...
Agile Operations Keynote: Redefine the Role of IT Operations With Digital Tra...
 
Next Generation Data Center Strategies
Next Generation Data Center StrategiesNext Generation Data Center Strategies
Next Generation Data Center Strategies
 
Solr At Scale For Time-Oriented Data: Presented by Brett Hoerner, Rocana
Solr At Scale For Time-Oriented Data: Presented by Brett Hoerner, RocanaSolr At Scale For Time-Oriented Data: Presented by Brett Hoerner, Rocana
Solr At Scale For Time-Oriented Data: Presented by Brett Hoerner, Rocana
 

Plus de kekekekenta

Azure Cognitive Service Personalizer(Preview)
Azure Cognitive Service Personalizer(Preview)Azure Cognitive Service Personalizer(Preview)
Azure Cognitive Service Personalizer(Preview)kekekekenta
 
アプリケーション開発と分析のための Log Analytics
アプリケーション開発と分析のための Log Analytics アプリケーション開発と分析のための Log Analytics
アプリケーション開発と分析のための Log Analytics kekekekenta
 
Microsoft Azure の概要と最近のアップデート(2016年6月25日)
Microsoft Azure の概要と最近のアップデート(2016年6月25日)Microsoft Azure の概要と最近のアップデート(2016年6月25日)
Microsoft Azure の概要と最近のアップデート(2016年6月25日)kekekekenta
 
SORACOM と Azure で IoT
SORACOM と Azure で IoTSORACOM と Azure で IoT
SORACOM と Azure で IoTkekekekenta
 
GoAzure 2015 Azure AD for Developers
GoAzure 2015 Azure AD for DevelopersGoAzure 2015 Azure AD for Developers
GoAzure 2015 Azure AD for Developerskekekekenta
 
これからAzureを始める人へ(LT)
これからAzureを始める人へ(LT)これからAzureを始める人へ(LT)
これからAzureを始める人へ(LT)kekekekenta
 
Build 2014 Azure インフラエンジニア向けアップデート
Build 2014 Azure インフラエンジニア向けアップデートBuild 2014 Azure インフラエンジニア向けアップデート
Build 2014 Azure インフラエンジニア向けアップデートkekekekenta
 
Windows Azure Active Directory Multi-Factor Authentication Preview for Phone ...
Windows Azure Active Directory Multi-Factor Authentication Preview for Phone ...Windows Azure Active Directory Multi-Factor Authentication Preview for Phone ...
Windows Azure Active Directory Multi-Factor Authentication Preview for Phone ...kekekekenta
 
Windows Azure Active Directory for your cloud applications
Windows Azure Active Directory for your cloud applicationsWindows Azure Active Directory for your cloud applications
Windows Azure Active Directory for your cloud applicationskekekekenta
 

Plus de kekekekenta (9)

Azure Cognitive Service Personalizer(Preview)
Azure Cognitive Service Personalizer(Preview)Azure Cognitive Service Personalizer(Preview)
Azure Cognitive Service Personalizer(Preview)
 
アプリケーション開発と分析のための Log Analytics
アプリケーション開発と分析のための Log Analytics アプリケーション開発と分析のための Log Analytics
アプリケーション開発と分析のための Log Analytics
 
Microsoft Azure の概要と最近のアップデート(2016年6月25日)
Microsoft Azure の概要と最近のアップデート(2016年6月25日)Microsoft Azure の概要と最近のアップデート(2016年6月25日)
Microsoft Azure の概要と最近のアップデート(2016年6月25日)
 
SORACOM と Azure で IoT
SORACOM と Azure で IoTSORACOM と Azure で IoT
SORACOM と Azure で IoT
 
GoAzure 2015 Azure AD for Developers
GoAzure 2015 Azure AD for DevelopersGoAzure 2015 Azure AD for Developers
GoAzure 2015 Azure AD for Developers
 
これからAzureを始める人へ(LT)
これからAzureを始める人へ(LT)これからAzureを始める人へ(LT)
これからAzureを始める人へ(LT)
 
Build 2014 Azure インフラエンジニア向けアップデート
Build 2014 Azure インフラエンジニア向けアップデートBuild 2014 Azure インフラエンジニア向けアップデート
Build 2014 Azure インフラエンジニア向けアップデート
 
Windows Azure Active Directory Multi-Factor Authentication Preview for Phone ...
Windows Azure Active Directory Multi-Factor Authentication Preview for Phone ...Windows Azure Active Directory Multi-Factor Authentication Preview for Phone ...
Windows Azure Active Directory Multi-Factor Authentication Preview for Phone ...
 
Windows Azure Active Directory for your cloud applications
Windows Azure Active Directory for your cloud applicationsWindows Azure Active Directory for your cloud applications
Windows Azure Active Directory for your cloud applications
 

Dernier

What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfWhat is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfMounikaPolabathina
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLScyllaDB
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICESSALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICESmohitsingh558521
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 3652toLead Limited
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity PlanDatabarracks
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsPixlogix Infotech
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Commit University
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .Alan Dix
 
Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersRaghuram Pandurangan
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxLoriGlavin3
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionDilum Bandara
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek SchlawackFwdays
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024Lonnie McRorey
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteDianaGray10
 

Dernier (20)

What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfWhat is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdf
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQL
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICESSALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity Plan
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and Cons
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .
 
Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information Developers
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An Introduction
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test Suite
 

Windows Azure Virtual Network with between regions

  • 1. Windows Azure Virtual Network with between regions Japan Windows Azure User Group Kentaro Aoki @kekekekenta October 24, 2013
  • 2. Virtual Networks Windows Azure East Asia Windows Azure West US vn-asia-gw.cloudapp.net (207.46.134.21) vn-us-gw.cloudapp.net (168.61.66.238) vn-asia (10.20.0.0/16) vn-us (10.10.0.0/16) vn-asia-vm Ubuntu VM 10.20.0.5 GATEWAY (static routing) 207.46.137.55 vn-us-gw Ubuntu VPN GW 10.10.0.4 vn-us-vm Ubuntu VM 10.10.0.5 internet vn-asia-gw Ubuntu VPN GW 10.20.0.4 GATEWAY (static routing) 168.61.64.182 2
  • 3. Using Network Address Translation Windows Azure East Asia Windows Azure West US vn-asia-gw.cloudapp.net (207.46.134.21) vn-us-gw.cloudapp.net (168.61.66.238) vn-asia (10.20.0.0/16) vn-us (10.10.0.0/16) vn-asia-vm Ubuntu VM 10.20.0.5 GATEWAY (static routing) 207.46.137.55 vn-us-gw Ubuntu VPN GW 10.10.0.4 internet vn-asia-gw Ubuntu VPN GW NAT (Masquerading) 10.20.0.4 vn-us-vm Ubuntu VM 10.10.0.5 NAT (Masquerading) GATEWAY (static routing) 168.61.64.182 3
  • 4. Virtual Network Settings Windows Azure East Asia Windows Azure West US 4
  • 5. VPN Configurations for the vn-asia-gw (1) • Create New Virtual Machine from Azure Portal – Ubuntu Server 12.04 LTS • Install IP-Sec Software on Ubuntu – $sudo apt-get install openswan • Setup IP-Sec Nat-Traversal – $sudo vi /etc/ipsec.conf • Config setup • protostack=netkey • nat_traversal=yes • virtual_private=%v4:10.20.0.0/16 • oe=off • include /etc/ipsec.d/*.conf 5
  • 6. VPN Configurations for the vn-asia-gw (2) • Setup VPN Information – $sudo vi /etc/ipsec.d/azure-us.conf • conn azure-us • authby=secret • auto=start • type=tunnel • left=10.20.0.4 • leftsubnet=10.20.0.0/16 • leftnexthop=%defaultroute • right=168.61.64.182 • rightsubnet=10.10.0.0/16 • ike=aes128-sha1-modp1024 • esp=aes128-sha1 • pfs=no 6
  • 7. VPN Configurations for the vn-asia-gw (3) • Setup Secret Key – $sudo vi /etc /ipec.secrets • 10.20.0.4 168.61.64.182 : PSK "krOurXxXX6…XXX“ • Enable ipv4 forwarding – $sudo vi /etc /sysctl.conf • net.ipv4.ip_forward=1 – $sudo sysctl -p /etc /sysctl.conf • Enable IP-Sec – $sudo service ipsec restart 7
  • 8. VPN Configurations for the vn-asia-gw (4) • Setup Firewall for SSH – $sudo ufw allow proto tcp to any port 22 • Setup Firewall for IP-Sec NAT Traversal – $sudo ufw allow proto udp to any port 500 – $sudo ufw allow proto udp to any port 4500 • Enable ipv4 forwarding for NAT – $sudo vi /etc /default/ufw • DEFAULT_FORWARD_POLICY="ACCEPT“ 8
  • 9. VPN Configurations for the vn-asia-gw (5) • Setup NAT Rule – $sudo vi /etc /ufw/before.rules (add following rule to the top) • # nat Table rules • *nat • :POSTROUTING ACCEPT [0:0] • # Forward traffic from eth1 through eth0. • -A POSTROUTING -s 10.10.0.0/16 -o eth0 -j MASQUERADE • # don't delete the 'COMMIT' line or these nat table rules won't be processed • COMMIT 9
  • 10. VPN Configurations for the vn-asia-gw (6) • Enable ufw (aka iptables) – $sudo ufw disable && sudo ufw enable 10
  • 11. Ping through the VPN tunnel Windows Azure East Asia Windows Azure West US 11
  • 12. Articles • VPN connection in the region between the Windows Azure – http://kentablog.cluscore.com/2013/10/windows-azurevpn.html • Research ed. – http://kentablog.cluscore.com/2013/10/creating-site-to-sitevpn-with-regions.html 12