f1234k
Hi all,
I am using Ubuntu and I installed Fedora using VirtualBox with network settings set to using Bridged Adaptors. I try to establish a tunnel between Ubuntu and Fedora with only the following two .conf files as an example, note that the following .conf files are for tunnelling between a Solaris and a remote Fedora, not a guest Fedora on VM.
(The IP's have been altered for privacy.)
#For Solaris
remote 133.122.45.92
port 1194
dev tun1
ifconfig 10.112.0.1 10.0.0.1
float
route 10.0.0.0 255.0.0.0
#For Fedora
port 1194
dev tun1
ifconfig 10.0.0.1 10.112.0.1
Could someone please help me with the following questions:
1) Do I still need the line "remote 133.122.45.92" (since I am tunnelling between host OS and guest OS on the same machine)? What should I change to?
2) How do I find the two IP's for both "ifconfig" and "route"? They all change with different machines right?
Also, I would really appreciate it if someone could show me examples of working .conf files, especially for something like my scenario. This is not my area of expertise and I've been assigned this task in my new job.
Thanks,
Jack
f1234k
Hi guys, I realized that the two ips for the ifconfig line is arbitrary. And I've successfully established a tunnel between my host os and guest os. However, my original plan is to make the guess os the server, and I found I can only make my host os as the server with the line "remote xx.xx.xx.xx", whereas the ip is the ip of my guess os. My problem now is that I want the server to access an agent/file in the client, instead of the other way around due to making my host os as the server, by using "route". I looked up many online material including Openvpn 2 Cookbook, but still unable to ping the ip/agent created in the client/guess os from my server/host os.
I set the tunnel ip for my server as 10.200.0.1 and client as 10.200.0.2. the new ip/agent created is 10.200.0.3, which I can ping from my client, but can't be pinged from server. So I know the routing through tunnel is not working.
Could someone please give me some advice on how to set up the routing?