gadjodilo83
Posts: 2
Joined: Sun Mar 10, 2013 3:51 pm

IP Camera with 3G

Mon Mar 11, 2013 8:31 am

hello together

my raspberry pi makes an internet connection via 3G USB stick. the ip camera is connected via ethernet. I would like to access from the external ip on the webinterface of the camera.

I tried my ip webcam (eth0) via gsm (ppp0) to achieve. internally to ping (ipwebcam 192.168.1.42) works!.

must I put up any iptables rules to 192.168.1.42:8080 is reachable?

ipwebcam (192.168.1.42) => eth0 (192.168.1.1) => ppp0 (extIP)

I want to access the webinterface of the webcam extIP: 8080.

is that even possible?

cheers, thanks for your help and
gadjo


it works now:

sudo iptables -t nat -A POSTROUTING -o ppp0 -j SNAT --to-source "extIP"

sudo iptables -t nat -A PREROUTING -p tcp --dport 8080 -d "extIP" -i ppp0 -j DNAT --to-destination 192.168.1.42:8080

sudo iptables -t nat -A POSTROUTING -p tcp --dport 8080 -d 192.168.1.42 -o ppp0 -j SNAT --to-source "extIP"

Alganon
Posts: 1
Joined: Sun Apr 21, 2013 2:22 pm

Re: IP Camera with 3G

Tue Apr 23, 2013 5:53 pm

Hi ,

I'm a newbie . I'm also a dinosaur . Old dog trying to learn new tricks . I want to do this camera over internet thing . I want to monitor a remote location with no power . I have set up a small solar system so I have 12 volts dc and I have an inverter for 120 volts ac . I don't have a phone or internet connection . I was thinking of using a data stick? to connect to the internet and a camera that would transmit to me via internet > mobile or confuser . It sounds like you have done this . How would I go about doing this ?

Thanks in advance , (be prepared for some stupid questions).
Barry Horne

Return to “Networking and servers”