Nat PROBLEM
Hello netfilter,
Hello:
I have a problem with IP translation.
I have 2 machines, with DSL conection.
First machine have eth0 (213.23.xxx.xxx) and second machine with a second ethernet named eth1(192.168.2.1).
I have a webcam in the second machine(192.168.1.21 eth1)and i want who any people go to first machine (213.23.xxx.xxx)can look the webcam who are installed in de second machine 192.168.2.1:8080. In others words when you type http://213.23.xxx.xxx:8080 go to 192.168.2.1:8080.
What rules need i to put with IPFILTER?
Can you help me please.
Thanks for your time
Signature · 2 lines
Best regards, lcef mailto:[email protected]
Quoted 11 lines · lcef
Hello netfilter,
I have 2 machines, with DSL conection.
First machine have eth0 (213.23.xxx.xxx) and second machine with a second ethernet named eth1(192.168.2.1).
I have a webcam in the second machine(192.168.1.21 eth1)and i want who any people go to first machine (213.23.xxx.xxx)can look the webcam who are installed in de second machine 192.168.2.1:8080. In others words when you type http://213.23.xxx.xxx:8080 go to 192.168.2.1:8080.
What rules need i to put with IPFILTER?
iptables -A PREROUTING -d 213.23.xxx.xxx -p tcp --dport 8080 -j DNAT --to 192.168.1.21
iptables -A FORWARD -d 192.168.1.21 -p tcp --dport 8080 -j ACCEPT
Antony.