Fail to implement NAT on Click

Tung Doan <[email protected]> Tue, 1 Dec 2015 01:53:54 +0900
Newsgroups gmane.mail.archives.mail-archive
Message-ID <CAMSUe3RNYFiDb70UG=gGDL4u7hpVzeLPKfgJ-emvKvJkO4+A0g@mail.gmail.com>
--===============3020985974240111726==
Content-Type: multipart/alternative; boundary=089e0103ef52ef247d0525c4e2ff

--089e0103ef52ef247d0525c4e2ff
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

Dear Click team,

I am sorry for bothering all of you. I am a newbie in Click. I have a
problem with NAT router and need your help.

Here is my mazuNAT-based configuration:

client-VM----(Host only mode)------Click VM (mazuNAT)-----(Bridged
Mode)------LAN router---outside.

My scenario is attached in this link:

https://lh4.googleusercontent.com/-BRMbeHRt0cQ/Vlx-UqobwTI/AAAAAAAAAhk/Upb_=
I2YfCpU/w953-h188-no/wrqw3t23t.PNG

In this scenario, both client-VM and Click VM are linux virtual machines
(ubuntu) on VirtualBox.

First of all, I set the internal interface of Click VM (192.168.56.6) as a
default gateway of client-VM. To do this, I used a command on client-VM:
$ sudo route add default gw 192.168.56.6

By the way, I hope that I can ping from client-VM to outside network
through default gateway on Click VM.
I also modified mazu-nat.click as following:
------------------------------

intern 192.168.56.6 192.168.56.0/24 08:00:27:42:97:a5,
extern 39.115.19.135 39.115.19.128/25 08:00:27:9e:0c:ac,
extern_next_hop 00:e0:b1:8d:03:ab
intern_server 192.168.56.5
------------------------------

The rest of code is still remained. Then, I run mazu-nat.click on Click VM:
$ sudo click-install mazu-nat,click

This command seems to work well. The problem is that client-VM is
unreachable outside network when I make a ping on client-VM. So, Could
anyone please tell me if I have misconfiguration or I should do something
else?

Thank you very much!

--=20
Name: Doan Van Tung (=EB=91=90 =EC=95=88 =EB=B0=98 =ED=89=81)
Phone number: 010-6364-9576
Email: tungdoan-nD+CBr/uKBS/[email protected]
*Information and Telecommunication*
Soongsil University, Seoul, Korea

--089e0103ef52ef247d0525c4e2ff
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Dear Click team,<div><br clear=3D"all"><div><p style=3D"ma=
rgin-bottom:16px;color:rgb(51,51,51);font-family:&#39;Helvetica Neue&#39;,H=
elvetica,&#39;Segoe UI&#39;,Arial,freesans,sans-serif,&#39;Apple Color Emoj=
i&#39;,&#39;Segoe UI Emoji&#39;,&#39;Segoe UI Symbol&#39;;font-size:14px;li=
ne-height:22.4px;margin-top:0px!important">I am sorry for bothering all of =
you. I am a newbie in Click. I have a problem with NAT router and need your=
 help.</p><p style=3D"margin-top:0px;margin-bottom:16px;color:rgb(51,51,51)=
;font-family:&#39;Helvetica Neue&#39;,Helvetica,&#39;Segoe UI&#39;,Arial,fr=
eesans,sans-serif,&#39;Apple Color Emoji&#39;,&#39;Segoe UI Emoji&#39;,&#39=
;Segoe UI Symbol&#39;;font-size:14px;line-height:22.4px">Here is my mazuNAT=
-based configuration:</p><p style=3D"margin-top:0px;margin-bottom:16px;colo=
r:rgb(51,51,51);font-family:&#39;Helvetica Neue&#39;,Helvetica,&#39;Segoe U=
I&#39;,Arial,freesans,sans-serif,&#39;Apple Color Emoji&#39;,&#39;Segoe UI =
Emoji&#39;,&#39;Segoe UI Symbol&#39;;font-size:14px;line-height:22.4px">cli=
ent-VM----(Host only mode)------Click VM (mazuNAT)-----(Bridged Mode)------=
LAN=C2=A0<span style=3D"line-height:22.4px">router---outside.</span></p><p =
style=3D"margin-top:0px;margin-bottom:16px;color:rgb(51,51,51);font-family:=
&#39;Helvetica Neue&#39;,Helvetica,&#39;Segoe UI&#39;,Arial,freesans,sans-s=
erif,&#39;Apple Color Emoji&#39;,&#39;Segoe UI Emoji&#39;,&#39;Segoe UI Sym=
bol&#39;;font-size:14px;line-height:22.4px"><span style=3D"line-height:22.4=
px">My scenario is attached in this link:</span></p><p style=3D"margin-top:=
0px;margin-bottom:16px"><font color=3D"#333333" face=3D"Helvetica Neue, Hel=
vetica, Segoe UI, Arial, freesans, sans-serif, Apple Color Emoji, Segoe UI =
Emoji, Segoe UI Symbol"><span style=3D"font-size:14px;line-height:22.4px"><=
a href=3D"https://lh4.googleusercontent.com/-BRMbeHRt0cQ/Vlx-UqobwTI/AAAAAA=
AAAhk/Upb_I2YfCpU/w953-h188-no/wrqw3t23t.PNG">https://lh4.googleusercontent=
.com/-BRMbeHRt0cQ/Vlx-UqobwTI/AAAAAAAAAhk/Upb_I2YfCpU/w953-h188-no/wrqw3t23=
t.PNG</a><br></span></font></p><p style=3D"margin-top:0px;margin-bottom:16p=
x;color:rgb(51,51,51);font-family:&#39;Helvetica Neue&#39;,Helvetica,&#39;S=
egoe UI&#39;,Arial,freesans,sans-serif,&#39;Apple Color Emoji&#39;,&#39;Seg=
oe UI Emoji&#39;,&#39;Segoe UI Symbol&#39;;font-size:14px;line-height:22.4p=
x"><span style=3D"line-height:22.4px">In this scenario, both client-VM and =
Click VM are linux virtual machines (ubuntu) on VirtualBox.</span></p><p st=
yle=3D"margin-top:0px;margin-bottom:16px;color:rgb(51,51,51);font-family:&#=
39;Helvetica Neue&#39;,Helvetica,&#39;Segoe UI&#39;,Arial,freesans,sans-ser=
if,&#39;Apple Color Emoji&#39;,&#39;Segoe UI Emoji&#39;,&#39;Segoe UI Symbo=
l&#39;;font-size:14px;line-height:22.4px">First of all, I set the internal =
interface of Click VM (192.168.56.6) as a default gateway of client-VM. To =
do this, I used a command on client-VM:<br>$ sudo route add default gw 192.=
168.56.6</p><p style=3D"margin-top:0px;margin-bottom:16px;color:rgb(51,51,5=
1);font-family:&#39;Helvetica Neue&#39;,Helvetica,&#39;Segoe UI&#39;,Arial,=
freesans,sans-serif,&#39;Apple Color Emoji&#39;,&#39;Segoe UI Emoji&#39;,&#=
39;Segoe UI Symbol&#39;;font-size:14px;line-height:22.4px">By the way, I ho=
pe that I can ping from client-VM to outside network through default gatewa=
y on Click VM.=C2=A0<br>I also modified mazu-nat.click as following:</p><hr=
 style=3D"min-height:4px;margin:16px 0px;overflow:hidden;border:0px none;pa=
dding:0px;color:rgb(51,51,51);font-family:&#39;Helvetica Neue&#39;,Helvetic=
a,&#39;Segoe UI&#39;,Arial,freesans,sans-serif,&#39;Apple Color Emoji&#39;,=
&#39;Segoe UI Emoji&#39;,&#39;Segoe UI Symbol&#39;;font-size:14px;line-heig=
ht:22.4px;background:rgb(231,231,231)"><p style=3D"margin-top:0px;margin-bo=
ttom:16px;color:rgb(51,51,51);font-family:&#39;Helvetica Neue&#39;,Helvetic=
a,&#39;Segoe UI&#39;,Arial,freesans,sans-serif,&#39;Apple Color Emoji&#39;,=
&#39;Segoe UI Emoji&#39;,&#39;Segoe UI Symbol&#39;;font-size:14px;line-heig=
ht:22.4px">intern 192.168.56.6=C2=A0<a href=3D"http://192.168.56.0/24" targ=
et=3D"_blank">192.168.56.0/24</a>=C2=A008:00:27:42:97:a5,<br>extern 39.115.=
19.135=C2=A0<a href=3D"http://39.115.19.128/25" target=3D"_blank">39.115.19=
.128/25</a>=C2=A008:00:27:9e:0c:ac,<br>extern_next_hop 00:e0:b1:8d:03:ab<br=
>intern_server 192.168.56.5</p><hr style=3D"min-height:4px;margin:16px 0px;=
overflow:hidden;border:0px none;padding:0px;color:rgb(51,51,51);font-family=
:&#39;Helvetica Neue&#39;,Helvetica,&#39;Segoe UI&#39;,Arial,freesans,sans-=
serif,&#39;Apple Color Emoji&#39;,&#39;Segoe UI Emoji&#39;,&#39;Segoe UI Sy=
mbol&#39;;font-size:14px;line-height:22.4px;background:rgb(231,231,231)"><p=
 style=3D"margin-top:0px;margin-bottom:16px;color:rgb(51,51,51);font-family=
:&#39;Helvetica Neue&#39;,Helvetica,&#39;Segoe UI&#39;,Arial,freesans,sans-=
serif,&#39;Apple Color Emoji&#39;,&#39;Segoe UI Emoji&#39;,&#39;Segoe UI Sy=
mbol&#39;;font-size:14px;line-height:22.4px">The rest of code is still rema=
ined. Then, I run mazu-nat.click on Click VM:<br>$ sudo click-install mazu-=
nat,click</p><p style=3D"margin-top:0px;margin-bottom:16px;color:rgb(51,51,=
51);font-family:&#39;Helvetica Neue&#39;,Helvetica,&#39;Segoe UI&#39;,Arial=
,freesans,sans-serif,&#39;Apple Color Emoji&#39;,&#39;Segoe UI Emoji&#39;,&=
#39;Segoe UI Symbol&#39;;font-size:14px;line-height:22.4px">This command se=
ems to work well. The problem is that client-VM is unreachable outside netw=
ork when I make a ping on client-VM. So, Could anyone please tell me if I h=
ave misconfiguration or I should do something else?</p><p style=3D"margin-t=
op:0px;color:rgb(51,51,51);font-family:&#39;Helvetica Neue&#39;,Helvetica,&=
#39;Segoe UI&#39;,Arial,freesans,sans-serif,&#39;Apple Color Emoji&#39;,&#3=
9;Segoe UI Emoji&#39;,&#39;Segoe UI Symbol&#39;;font-size:14px;line-height:=
22.4px;margin-bottom:0px!important">Thank you very much!</p></div><div><br>=
</div>-- <br><div class=3D"gmail_signature"><div dir=3D"ltr"><div><div dir=
=3D"ltr"><div><div dir=3D"ltr"><div><div dir=3D"ltr"><div><div>Name: Doan V=
an Tung (=EB=91=90 =EC=95=88 =EB=B0=98 =ED=89=81)<br></div>Phone number: 01=
0-6364-9576<br>Email: <a href=3D"mailto:tungdoan-nD+CBr/uKBS/[email protected]" target=3D"_=
blank">tungdoan-nD+CBr/uKBS/[email protected]</a><br><i>Information and Telecommunication</=
i><br></div>Soongsil University, Seoul, Korea<br></div></div></div></div></=
div></div></div></div>
</div></div>

--089e0103ef52ef247d0525c4e2ff--


--===============3020985974240111726==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Gossip mailing list
https://www.mail-archive.com/gossip-piJqB+B6DfPJghKJT/[email protected]
https://www.mail-archive.com/cgi-bin/mailman/options/gossip
--===============3020985974240111726==--