I reinstalled my Raspberry, and I can access it with SSH, but it can't go outside of the router. How to debug it?
Modell: Raspberry Pi2 B+
OS: Raspbian
ip a
to show your IP
netstat -nr
to check your Gateway is your Router.
traceroute 8.8.8.8
to see if routing looks ok.
cat /etc/resolv.conf
to see what nameserver is defined.
Although having said all this, you question isn't probably a good one for stackoverflow and you should be googling around something like 'connect raspbian to the internet' or 'raspbian network setup'
Related
I bought a VPS for my game since I was developing and hosting it on my own network. I would simple do port forwarding between my router and my machine, making the config on the router's page. Now, I don't know how to do the same thing on the VPS (SSH). I read something about iptables but Idk if it is what I'm searching for. I just want to open an UDP port. There was Apache running fine and I stopped it. What commands should I use?
I was able to fix this problem. I just shouldn't do any port forwarding, and bind the socket on the public address.
I have setup a CentOS VM to test Hadoop. I set a network interface in NAT mode with a paravirtualized network type interface. Port redirection for SSH (TCP 22) works without issues. However some other ports do not seem to fully work (9870, 8042, 9864). I can see some "action" happening. Let me give an example for port 9870.
These are my rules (remember I said the SSH rule works without issues):
RulesX TCP 127.0.0.1 59870 10.0.3.15 9870
When I try to access http://127.0.0.1:59870 I get automatically redirected to https://127.0.0.1:59870 but eventually I get a ERR_TIMED_OUT error.
Tracing the traffic on the VM, I can see the traffic coming in but I cannot see any response back (I have one single network interface):
I am not sure what else to look at.
Any idea is highly welcome. Thank you!
More than likely, you need to open the non-standard ports on Centos firewall.
Open firewall port on CentOS 7
I connect to my remote VPS like that:
ssh -f -C2qTnN -D 1080 username#xxx.xxx.xxx.xxx
Then setup Firefox proxy setting to SOCKS5 and 127.0.0.1:1080. That's work.
Now I try to redirect all traffic from my FreeBSD to localhost:1080, but I have no idea. Can you help?
If you want to redirect all traffic, do not use SOCKS5 proxy, but rather use -w option in ssh, which creates something like VPN connection and its own TUN device, which is more suitable for tunnelling system-wide traffic.
There are many examples on the internet, for example here. But this is really advanced use case.
I need a good tutorial that will explain on how to setup a ssh connection via a direct ethernet connection to a Raspberry Pi with a static IP running Arch Linux. I have tried a few but all seem to fail. Any Suggestions?
What kind of ethernet connection? Do you have a crossover cable? If yes you can connect it directly to your computer and assign it an IP address. If not, you can connect your Pi to the same router as your computer is connected to, and install nmap on your machine. You can run the following command to identify your raspberry pi's IP address (assuming your router assigns IP addresses in 192.168.1.x space):
nmap -sn 192.168.1.1/24
The Raspberry Pi will show up with its ethernet MAC address and most likely also that the address belongs to RPI foundation. You can then ssh into it.
I want to test my iPhone web Application developed in localhost (XAMPP) in my iPhone. My system IP is 192.168.1.1 in the local network.
When I visit http://192.168.1.1:80 in the browser, it says "The server 192.168.1.1:80 at DSL Router requires a username and password".
I thought it must be my XAMPP username/password but it seems it is not and it shows a 404 error.
Both my system and my iPhone are in the same network. So where am I doing it wrong?
Check to make sure your IP is correct for your host machine.
Windows: Windows + R -> type "cmd"
ipconfig
*unix:
ifconfig
Usually 192.168.0.1 or 192.168.1.1 are allocated to your router, which is what you are seeing via your iPhone.
192.168.1.1 sounds like it's your router's IP not your Mac's. Try running ifconfig in a terminal to find out your Mac's actual IP address. It's probably something like 192.168.1.2.
Are you sure the IP of your computer is 192.168.1.1 ? It seems like 192.168.1.1 is your DSL router.
In that case, maybe XAMPP is asking for password?
Other reason may be that your router is not letting lan computers access each other...