Jump to content
Not connected, Your IP: 3.137.170.76
Denise6363

ANSWERED Understanding port forwarding and getting it to work

Recommended Posts

it's not yet solve, i'm using it in testing a payloads on my android device and once i execute the program. i should get a reverse connection on my Linux if listening to incoming connections at the same time...

Share this post


Link to post

Yes, you should. Can you bind the software to the VPN IP (the 10.x.x.x one) or to the interface tun0?


NOT AN AIRVPN TEAM MEMBER. USE TICKETS FOR PROFESSIONAL SUPPORT.

LZ1's New User Guide to AirVPN « Plenty of stuff for advanced users, too!

Want to contact me directly? All relevant methods are on my About me page.

Share this post


Link to post

Yes i bind the software with my exit IP and the remote port............then i'm listening on incoming connections with my local ip and the real  port i set the remote port on..... so execute the program on a device outside my network....  i should get the reverse connection with these settings?????


I WANT YOU TO KNOW THAT THE PORT HAS BEEN OPENed AND FORWARDED SUCCESSFULLY BECAUSE I CHECKED portchecktool.com and my remote port is open on my exit ip.......


So what i need from you now is not longer about port forwarding because i already solve that... 

my exit ip is 0.0.0.0.    my  local ip {wlan0} which is the ip given to my adapter is 1.1.1.1...... I set a random port 3333 to 4444

1. now tell me, which ip do i set for the software that i want to access from device outside my network and which of the two port ????
2. which ip will i receive the incoming connection on and which of the 2 port???

remember these software will send a reverse connection to the IP address and the port i already set on it... once executed from device outside my network....
which means i must be listening on ip and port that these reverse connection forwarded to {that's why port forwarding is very important in doing these]

HOW I WANT YOU TO ANSWER THESE QUESTION
set these ip for your software x.x.x.x with port yyyy
set these as your listening ip u.u.u.u with port tttt

use the parameters i used in my question for better understanding and sorry about my english thanks

Share this post


Link to post
12 hours ago, Denise6363 said:

set these ip for your software x.x.x.x with port yyyy


Do you mean the software that will access whatever you try to host?

set these ip for your software 0.0.0.0 port 3333
 
12 hours ago, Denise6363 said:

set these as your listening ip u.u.u.u with port tttt


set these as your listening ip 1.1.1.1 with port 4444


I think it'd be better to simply do it with the actual IPs you are getting. Let's assume these:
Exit IP: 141.98.102.187 (Alsephina)
tun0 IP: 10.25.178.147
Forwarded port: 9000 to local 80

Set this as your listening IP:
10.25.178.147 port 80 (or tun0, if you can bind to interfaces instead)

Connect to your server by using this:
141.98.102.187 port 9000

NOT AN AIRVPN TEAM MEMBER. USE TICKETS FOR PROFESSIONAL SUPPORT.

LZ1's New User Guide to AirVPN « Plenty of stuff for advanced users, too!

Want to contact me directly? All relevant methods are on my About me page.

Share this post


Link to post

the tun0 ip is default from airvpn right ??? not my adapter IP.............???



-----YES YOU'RE RIGHT, {Connect to your server by using this:
141.98.102.187 port 9000}  


BUT THE ONE THAT'S GIVEN ME A PROBLEM IS A SOFTWARE OR PROGRAM LIKE .exe
I'll need to modify these program with an IP address and port....... in such a way that if i try to run these app outside my network it'll send a reverse connection to the IP and port i programmed in the app.......

So now i'll need to set a listener to receive incoming reverse connection from the device which these program was executed
------------------i think you should be able to understand me 100% now....i mean what am trying  to do....



WITH THAT EXPLANATION, IS YOUR STATEMENT STILL CORRECT ???




I think it'd be better to simply do it with the actual IPs you are getting. Let's assume these:
Exit IP: 141.98.102.187 (Alsephina)
tun0 IP: 10.25.178.147
Forwarded port: 9000 to local 80



set these ip for your software 141.98.102.187 port 9000


Set this as your 
listening IP:
10.25.178.147 port 80 (or tun0, if you can bind to interfaces instead)

????? THANKS SO MUCH AND SORRY FOR TAKING MUCH OF YOUR TIME...

Share this post


Link to post
1 hour ago, Denise6363 said:

the tun0 ip is default from airvpn right ??? not my adapter IP.............???


Well, the interface enumeration begins with 0, and since practically all people here use only one connection on a machine, tun0 is used. It can also be tun1, tun2, etc. depending on how many tun interfaces were created. :) But one is the default and considered normal.
 
1 hour ago, Denise6363 said:

BUT THE ONE THAT'S GIVEN ME A PROBLEM IS A SOFTWARE OR PROGRAM LIKE .exe
I'll need to modify these program with an IP address and port....... in such a way that if i try to run these app outside my network it'll send a reverse connection to the IP and port i programmed in the app.......

So now i'll need to set a listener to receive incoming reverse connection from the device which these program was executed


No, sorry, I don't fully understand you yet.
  • You have a program, an EXE, which you need to configure with an IP and port. I suppose it's not the listening application, right? It will connect to the listening program instead. It runs on something that is mobile (you write, it can be outside the network).
  • You want to run "this app". Which one is meant? "This app" is supposed to connect back to the IP:port you configured in the EXE program? Or is "this app" the EXE program?
  • The machine running the EXE is supposed to connect to something that is listening when it's outside the network.
Honestly,.. just tell us what software you are trying to run. It's difficult to imagine any software project which needs this kind of effort.
 
1 hour ago, Denise6363 said:

????? THANKS SO MUCH AND SORRY FOR TAKING MUCH OF YOUR TIME...


Hang in there, we'll get to the bottom of this. :D

NOT AN AIRVPN TEAM MEMBER. USE TICKETS FOR PROFESSIONAL SUPPORT.

LZ1's New User Guide to AirVPN « Plenty of stuff for advanced users, too!

Want to contact me directly? All relevant methods are on my About me page.

Share this post


Link to post

I CAN EXPLAIN BETTER


let me use router as an example...if forward port 80 to 90 to the public ip address of my local website 1.1.1.1... i will be able to do 2 things
---access my website outside the network with these 1.1.1.1 ON PORT 80
---any incoming connection on port 80, it'll firstly get inside my router and once  my router receive these connection... it'll forward it  to my machine which is my public ip address on port 90
so i can listen for incoming connection with my machine ip address or internal ip adress on port 90.... done

VPN SERVER

if forward port 3333 to 80 to the exip ip address .... i will be able to do 2 things
---access my website outside the network with these port            ccc.airdns...sososo....: 3333 done....
---any incoming connection will get to my server {airvpn} with the exit ip and the remote port 3333.... so my server will forward these connection to my computer  {unknown ip} on port 80 that i opened

which means, i will be listen to the incoming connection from the {unknown ip } on port 80


WHAT IS THE UNKNOWN IP ????
{THESE IP REPRESENT MY LISTENING IP ADDRESS WHILE USING ROUTER]

IT'S REALLY SIMPLE I KNOW YOU DON'T REALLY UNDERSTAND ME THAT'S WHY WE ARE STILL ON THESE TOPIC.... FORGET ABOUT THE APP AM TALKING ABOUT, FOCUS ON THE EXPLANATION

Share this post


Link to post
56 minutes ago, Denise6363 said:

{THESE IP REPRESENT MY LISTENING IP ADDRESS WHILE USING ROUTER]

Do you use a router(dd-wrt or Tomato flushed)?
1 hour ago, Denise6363 said:

FOCUS ON THE EXPLANATION

That has already been explained to you by giganerd.
You said you understand and got it working.
Where exactly are you going with all these "scenarios"?


 

Share this post


Link to post
4 minutes ago, Flx said:

That has already been explained to you by giganerd.
You said you understand and got it working.


Yes, I noticed it after the last post as well: Already explained, multiple times. We were moving in circles the whole time.

@Denise6363
  1. Do you still have a problem with connectivity?
  2. I could regret this question, but do you understand now?

NOT AN AIRVPN TEAM MEMBER. USE TICKETS FOR PROFESSIONAL SUPPORT.

LZ1's New User Guide to AirVPN « Plenty of stuff for advanced users, too!

Want to contact me directly? All relevant methods are on my About me page.

Share this post


Link to post

I'm sorry for my question is much.... it's not working for me  that was why i keep on with my explanation

the internal ip i will be listening on is my adapter ip ???
or tun0 IP: 10.25.178.147 by default????


or simply use 
http://whatsmyrouterip.com/   and use the internal ip

i'll try it again with giganerd answer that i said i understand and get back to you 

Share this post


Link to post
8 hours ago, Denise6363 said:

it's not working for me that was why i keep on with my explanation


I see.
 
8 hours ago, Denise6363 said:

the internal ip i will be listening on is my adapter ip ???


Exactly.

NOT AN AIRVPN TEAM MEMBER. USE TICKETS FOR PROFESSIONAL SUPPORT.

LZ1's New User Guide to AirVPN « Plenty of stuff for advanced users, too!

Want to contact me directly? All relevant methods are on my About me page.

Share this post


Link to post

I took my time and getting to understand 

Yes, you should. Can you bind the software to the VPN IP (the 10.x.x.x one) or to the interface tun0?

i found my tun0 NOW
VPN IP (the 10.x.x.x one

So i will bind the software with that tun0 IP and the remote port

then listen for incoming connection on my Adapter IP???

which means exit-IP isn't involve at all...

Share this post


Link to post
1 hour ago, Denise6363 said:

and the remote port


Local port. The remote port is used to connect to whatever you are hosting.
 
1 hour ago, Denise6363 said:
which means exit-IP isn't involve at all...

Not in regard to the configuration of whatever is listening, but others need to know it (or at least a DDNS name).

NOT AN AIRVPN TEAM MEMBER. USE TICKETS FOR PROFESSIONAL SUPPORT.

LZ1's New User Guide to AirVPN « Plenty of stuff for advanced users, too!

Want to contact me directly? All relevant methods are on my About me page.

Share this post


Link to post

example port 3333 to 123



now i will bind my payload with tun0 and the port 123


then listen for incoming connection with my adapter ip and the port 123 right ?


i just did it these way and i can't get any reverse connection from my software, i listened with my adapter IP

I know i will be out of these one day if i don't loose hope

Share this post


Link to post
2 hours ago, Denise6363 said:

example port 3333 to 123



now i will bind my payload with tun0 and the port 123


then listen for incoming connection with my adapter ip and the port 123 right ?


Exactly.
 
2 hours ago, Denise6363 said:

i just did it these way and i can't get any reverse connection from my software, i listened with my adapter IP


Can you please try vanilla OpenVPN from openvpn.net?

NOT AN AIRVPN TEAM MEMBER. USE TICKETS FOR PROFESSIONAL SUPPORT.

LZ1's New User Guide to AirVPN « Plenty of stuff for advanced users, too!

Want to contact me directly? All relevant methods are on my About me page.

Share this post


Link to post

It finally worked


I bind the software with the exit-ip and the remote port

i create a listener with tun0 and the port i remote to......

THANKS SO MUCH { giganerd }

 

Share this post


Link to post

Phew, finally. I was beginning to worry it might be a bug or something.

Didn't I write at some point we will get to the bottom of this? Thanks for hanging in there. :) Enjoy!


NOT AN AIRVPN TEAM MEMBER. USE TICKETS FOR PROFESSIONAL SUPPORT.

LZ1's New User Guide to AirVPN « Plenty of stuff for advanced users, too!

Want to contact me directly? All relevant methods are on my About me page.

Share this post


Link to post
you told me earlier but the problem was how to find tun0..... so that's why i ignored these answer earlier



 

I think it'd be better to simply do it with the actual IPs you are getting. Let's assume these:

Exit IP: 141.98.102.187 (Alsephina)
tun0 IP: 10.25.178.147
Forwarded port: 9000 to local 80

Set this as your listening IP:
10.25.178.147 port 80 (or tun0, if you can bind to interfaces instead)

Connect to your server by using this:
141.98.102.187 port 9000

Share this post


Link to post

I'm trying all my best to understand everything @giganerd

My exit-ip is like my public ip which is something like 111.230.444.54

so there's another entry ip which is 111.230.444.52

111.230.444.52 is these internal ip or local please explain that for me thanks

Share this post


Link to post

AirVPN uses separate entry and exit IP addresses. The entry IPs are only used to connect OpenVPN to an AirVPN server.


NOT AN AIRVPN TEAM MEMBER. USE TICKETS FOR PROFESSIONAL SUPPORT.

LZ1's New User Guide to AirVPN « Plenty of stuff for advanced users, too!

Want to contact me directly? All relevant methods are on my About me page.

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Security Check
    Play CAPTCHA Audio
    Refresh Image

×
×
  • Create New...