Cable Forum

Cable Forum (https://www.cableforum.uk/board/index.php)
-   Networking (https://www.cableforum.uk/board/forumdisplay.php?f=87)
-   -   Another port forwarding question! :( (https://www.cableforum.uk/board/showthread.php?t=33700541)

Y15HAL 05-04-2015 21:47

Another port forwarding question! :(
 
Good Evening All,

Been trawling the internet for a solution to my problem, but cannot find anything thus far :(

I have recently had VM SH (Virgin Media Super Hub) installed, and am trying to get port forwarding set up.

I have a raspberry PI connected, with a static IP, and set a service up on port 8081.

I can connect to it internally fine when on WIFI.

I've set up port forwarding, but cannot connect to it when mobile (on 3G)....

Also, when using an online port scanner, all ports are showing as being closed....

"Problem! I could not see your service on XX.X.XX.X on port (8081).
Reason: Connection timed out."

I have even tried with the firewall turned off on the SH....added the PI to the DMZ, still no joy.....There is no firewall local on my Macbook.....

I can however, remotely access my router externally using 3G on my phone....

Any ideas? Pulling my hair out here....Going to throw this through the window soon!! :mad::confused:

Any help would be much appreciated.

Thanks in advance.

Kymmy 05-04-2015 21:57

Re: Another port forwarding question! :(
 
Perhaps the 3G service is not allowing port 8081?

PS.. welcome to the site

Y15HAL 05-04-2015 22:03

Re: Another port forwarding question! :(
 
Quote:

Originally Posted by Kymmy (Post 35769908)
Perhaps the 3G service is not allowing port 8081?

PS.. welcome to the site

Thanks for coming back so soon, and welcoming me :)

Surely the port should show as open when running a scan then? :confused:

Kymmy 05-04-2015 22:08

Re: Another port forwarding question! :(
 
Not always, does the port scan show any ports open? you may find that the security settings on the superhub is set to high

Y15HAL 05-04-2015 22:17

Re: Another port forwarding question! :(
 
I've tried the common ports, i.e. 80, 21, 22, 23.....All fail....

The only one i tried which worked was 8443 (the remote access one).

Firewall is currently turned off on the SH, but when it was on, it was set to low....

Kymmy 05-04-2015 23:07

Re: Another port forwarding question! :(
 
Is there anything in the firewall log?

Y15HAL 05-04-2015 23:14

Re: Another port forwarding question! :(
 
Nope, firewall log is useless :)

LSainsbury 06-04-2015 09:16

Re: Another port forwarding question! :(
 
Have you tried it from another non 3G / 4G connection? A friends internet connection perhaps?

Y15HAL 06-04-2015 20:35

Re: Another port forwarding question! :(
 
Yes, just tried it with no joy :(

LSainsbury 06-04-2015 21:28

Re: Another port forwarding question! :(
 
You have used forwarding and not triggering - yes?

Y15HAL 06-04-2015 21:40

Re: Another port forwarding question! :(
 
Definitely port forwarding....

I have tested and set my destination IP address as my Macbook, and the port scan was successful....

When changing the IP to my PI, it times out.....Looks like some setting on the PI is refusing the connection :(

Kymmy 07-04-2015 08:21

Re: Another port forwarding question! :(
 
...and with that simple test you have found that there's nothing wrong with the superhub ;)

What's in (if it exists)

Code:

/etc/network/iptables

qasdfdsaq 07-04-2015 11:02

Re: Another port forwarding question! :(
 
Sounds like the Pi is set to only allow connections from local IP addresses.

Y15HAL 07-04-2015 22:05

Re: Another port forwarding question! :(
 
Quote:

Originally Posted by Kymmy (Post 35770089)
...and with that simple test you have found that there's nothing wrong with the superhub ;)

What's in (if it exists)

Code:

/etc/network/iptables

Doesn't look like it exists....

"cat: /etc/network/iptables: No such file or directory"

---------- Post added at 22:05 ---------- Previous post was at 22:05 ----------

Quote:

Originally Posted by qasdfdsaq (Post 35770117)
Sounds like the Pi is set to only allow connections from local IP addresses.

This must be a default setting, as i've not changed anything....

How can i change this? :confused:

Kymmy 07-04-2015 22:09

Re: Another port forwarding question! :(
 
http://virtualitblog.blogspot.co.uk/...pberry-pi.html

Y15HAL 07-04-2015 23:03

Re: Another port forwarding question! :(
 
Quote:

Originally Posted by Kymmy (Post 35770283)

Giving this a go now.... :)

---------- Post added at 22:29 ---------- Previous post was at 22:19 ----------

Quote:

Originally Posted by Kymmy (Post 35770283)

I've followed the link, and adjusted what i feel is necessary, so IPTables now looks like this:-

pi@raspbmc:~$ sudo iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
ACCEPT all -- 192.168.0.0/24 anywhere
DROP all -- anywhere anywhere

Chain FORWARD (policy ACCEPT)
target prot opt source destination

Chain OUTPUT (policy ACCEPT)
target prot opt source destination
pi@raspbmc:~$

---------- Post added at 22:31 ---------- Previous post was at 22:29 ----------

I tried adding this:-

"sudo iptables -A INPUT -p tcp --dport 1979 -m state --state NEW -j ACCEPT"

It accepts the changes, but then disappears after the PI is rebooted....

---------- Post added at 23:03 ---------- Previous post was at 22:31 ----------

Quote:

Originally Posted by Kymmy (Post 35770089)
...and with that simple test you have found that there's nothing wrong with the superhub ;)

What's in (if it exists)

Code:

/etc/network/iptables

You my man, are an absolute genius!! :) :cool:

Got this working now, thanks a million! Owe you a pint or two! ;)

Kymmy 08-04-2015 07:28

Re: Another port forwarding question! :(
 
Quote:

Originally Posted by Y15HAL (Post 35770285)

You my man, are an absolute genius!! :) :cool:

Got this working now, thanks a million! Owe you a pint or two! ;)

Not quite

:cleader:

qasdfdsaq 08-04-2015 16:57

Re: Another port forwarding question! :(
 
It's a gender-neutral expression, like "Hi guys" when you walk into a room full of women*


* Cue awkwardness

Kymmy 08-04-2015 17:05

Re: Another port forwarding question! :(
 
Only place I found MAN to be gender neutral in all of my travels is South Africa :D There everyone is refered to by "Man"

qasdfdsaq 08-04-2015 19:28

Re: Another port forwarding question! :(
 
Man-kind, man's achievements, prehistoric man, every man for himself, hu-man... etc.

http://dictionary.reference.com/browse/man?s=t

Quote:

1.
an adult male person, as distinguished from a boy or a woman.
2.
a member of the species Homo sapiens or all the members of this species collectively, without regard to sex:
prehistoric man.
3.
the human individual as representing the species, without reference to sex; the human race; humankind:
Man hopes for peace, but prepares for war.
4.
a human being; person:
to give a man a chance; When the audience smelled the smoke, it was every man for himself.


All times are GMT +1. The time now is 11:07.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
All Posts and Content are © Cable Forum