View Full Version : [ubuntu] port forwarding

April 14th, 2010, 03:42 PM
I have a small server with static ip and a IPCAM (axis 205 network camera) ( that use the port 1130.

<web> ==eth0==MYSERVER==ETH1== IPCAM

My goal is to see the webcams from internet:



my ufw before rules is http://pastebin.com/8fycfd8d

and my ufw status is

xxxx@BatServer:~$ sudo ufw status
Status: active

To Action From
-- ------ ----
22/tcp ALLOW Anywhere
80 ALLOW Anywhere
631 ALLOW Anywhere
54925/udp ALLOW Anywhere
1130/tcp ALLOW Anywhere 1130/tcp ALLOW Anywhere

i can see the webcam http://MYSTATICIP:1130 from my LANif I use the command

sudo iptables -t nat -A PREROUTING -d MYSTATICIP -p tcp --dport 1130 -j DNAT --to-destination

but it is unreachable from the outside.... :confused:

Can you help please?


April 14th, 2010, 03:46 PM
can you ping your external ip from the outside? How is your router (ie: firewall) setup? is your setting listed in iptables?

April 14th, 2010, 03:54 PM
i can ping my site, and work perfectly

my iptables -L is http://pastebin.com/P36Nk6Fq

April 14th, 2010, 04:00 PM
and your static IP is an outside address? You can access the camera internally?

April 14th, 2010, 04:13 PM
All People into the LAN can see the camera output...

but All people outside this LAN can't see the camera output

April 14th, 2010, 04:34 PM
outside static address on the machine?

April 14th, 2010, 06:39 PM
outside with static address?

connection time-out :(

April 14th, 2010, 08:31 PM
What router are you using?

What is the machine's IP address?

April 14th, 2010, 08:35 PM
My server with Static Ip, is a DHCP server and have 2 ip

eth0 with public ip pingu.pin.unifi.it

and eth1

my webcam have

April 15th, 2010, 09:44 AM
with this rule

sudo iptables -t nat -A PREROUTING -p tcp --dport 1130 -d MYSTATICIP -j DNAT --to-destination

we can see the webcam from the LAN... :(