All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Alexander W. Janssen" <yalla@ynfonatic.de>
To: netfilter@lists.netfilter.org
Subject: Re: How to let people see my webcam using Windows Media Encoder
Date: Sun, 2 Feb 2003 18:08:13 +0100	[thread overview]
Message-ID: <20030202180813.A2604@ynfonatic.de> (raw)
In-Reply-To: <000601c2caa5$0a3c1700$0601a8c0@jasper>

[-- Attachment #1: Type: text/plain, Size: 1668 bytes --]

Hi Jasper,

On Sun, Feb 02, 2003 at 11:22:45AM +0100, Jasper Lingers wrote:
> Also when installed my IP is 192.168.1.6 but now is the thing how people
> can see my webcam from outside. I have no idea where the IPtables config
> file is also cause im using WebMin at the moment so if people could
> explain it me in steps, I would appreciate that.

first you have to know on which port your webcam-program listens.
I would guess it's a small webserver listening on port 80?

Then you just have to do:

iptables -t nat -I PREROUTING -p tcp --dport 80 -j DNAT --to-destination 192.168.1.6:80

This redirects all incoming traffic destined for port 80 on your firewall to
port 80 on your internal windows-box. If you allready use port 80 on your
firewall for some sort of webserver, you can assign another port. For example,
you might want to redirect port 8888 to port 80 on you internal machine. Then
just do:

iptables -t nat -I PREROUTING -p tcp --dport 8888 -j DNAT --to-destination 192.168.1.6:80

If your webcam-server doesn't listen to port 80, adapt the 192.168.1.6:n part
accordingly.

> I a totally n00b with compiling kernels and stuff, but if it is possible
> to run a program or edit IPtables or so, please help me out, I need it
> get to work for my parents :S

If you are using a recent distribution you don't have to compile any kernel
any more as long as you don't want bleeding-edge features.

> Power2All
> Holland

Umh? :-)

Hope that helps, Alex.


-- 
"Mr Data, when I said 'Fire at Will', I didn't mean for you to be so literal."
Instructions for use of this post: Insert tounge in cheek. Read as normal.

[-- Attachment #2: Type: application/pgp-signature, Size: 248 bytes --]

      parent reply	other threads:[~2003-02-02 17:08 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-02-02 10:22 How to let people see my webcam using Windows Media Encoder Jasper Lingers
2003-02-02 17:00 ` Alexander W. Janssen
2003-02-02 17:08 ` Alexander W. Janssen [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030202180813.A2604@ynfonatic.de \
    --to=yalla@ynfonatic.de \
    --cc=netfilter@lists.netfilter.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.