Ahoi hoi
Ich habe mir ein Webserver eingerichtet "apache2", + motion installiert für einen webcam stream, den ich auf der page streamen lassen will.
Das problem ist aber, in Motion wird der port für die webcam auf localhost:8081 angegeben. Ich probiere seit ewigkeiten den per iptables freizugeben. Im Router ist er per NAT weitergeleitet. Aber auch im LAN wen ich von meinem PC auf den server gehen will funktioniert 192.168.2.101:8081 nicht, es will irgendwie einfach nicht gehen.
hier mal ein paar ausgaben:
-----@psyflat ~/Dokumente $ sudo iptables -I INPUT -p tcp --dport 8081 -j ACCEPT[sudo] password for smodo: -----@psyflat ~/Dokumente $ nmap -sT -O localhost TCP/IP fingerprinting (for OS scan) requires root privileges. QUITTING! -----@psyflat ~/Dokumente $ sudo nmap -sT -O localhost Starting Nmap 6.00 ( http://nmap.org ) at 2013-11-05 13:22 CET Nmap scan report for localhost (127.0.0.1) Host is up (0.00012s latency). Not shown: 993 closed ports PORT STATE SERVICE 22/tcp open ssh 80/tcp open http 139/tcp open netbios-ssn 445/tcp open microsoft-ds 631/tcp open ipp 8080/tcp open http-proxy 8081/tcp open blackice-icecap No exact OS matches for host (If you know what OS is running on it, see http://nmap.org/submit/ ). TCP/IP fingerprint: OS:SCAN(V=6.00%E=4%D=11/5%OT=22%CT=1%CU=43068%PV=N%DS=0%DC=L%G=Y%TM=5278E30 OS:F%P=x86_64-unknown-linux-gnu)SEQ(SP=FB%GCD=1%ISR=10F%TI=Z%CI=Z%II=I%TS=8 OS:)OPS(O1=M400CST11NW7%O2=M400CST11NW7%O3=M400CNNT11NW7%O4=M400CST11NW7%O5 OS:=M400CST11NW7%O6=M400CST11)WIN(W1=8000%W2=8000%W3=8000%W4=8000%W5=8000%W OS:6=8000)ECN(R=Y%DF=Y%T=41%W=8018%O=M400CNNSNW7%CC=Y%Q=)T1(R=Y%DF=Y%T=41%S OS:=O%A=S+%F=AS%RD=0%Q=)T2(R=N)T3(R=N)T4(R=Y%DF=Y%T=41%W=0%S=A%A=Z%F=R%O=%R OS:D=0%Q=)T5(R=Y%DF=Y%T=41%W=0%S=Z%A=S+%F=AR%O=%RD=0%Q=)T6(R=Y%DF=Y%T=41%W= OS:0%S=A%A=Z%F=R%O=%RD=0%Q=)T7(R=Y%DF=Y%T=41%W=0%S=Z%A=S+%F=AR%O=%RD=0%Q=)U OS:1(R=Y%DF=N%T=41%IPL=164%UN=0%RIPL=G%RID=G%RIPCK=G%RUCK=G%RUD=G)IE(R=Y%DF OS:I=N%T=41%CD=S) Network Distance: 0 hops OS detection performed. Please report any incorrect results at http://nmap.org/submit/ . Nmap done: 1 IP address (1 host up) scanned in 12.00 seconds smodo@psyflat ~/Dokumente $ iptables -nvL iptables v1.4.12: can't initialize iptables table `filter': Permission denied (you must be root) Perhaps iptables or your kernel needs to be upgraded.
und:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | -----@psyflat ~/Dokumente $ sudo iptables -nvL Chain INPUT (policy ACCEPT 2906 packets, 232K bytes) pkts bytes target prot opt in out source destination 7 404 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:8081 5 1896 ACCEPT udp -- eth0 * 0.0.0.0/0 0.0.0.0/0 udp dpt:67 1 60 ACCEPT tcp -- eth0 * 0.0.0.0/0 0.0.0.0/0 tcp dpt:67 475 30021 ACCEPT udp -- eth0 * 0.0.0.0/0 0.0.0.0/0 udp dpt:53 2 120 ACCEPT tcp -- eth0 * 0.0.0.0/0 0.0.0.0/0 tcp dpt:53 Chain FORWARD (policy ACCEPT 0 packets, 0 bytes) pkts bytes target prot opt in out source destination 604K 860M ACCEPT all -- * eth0 0.0.0.0/0 10.42.0.0/24 state RELATED,ESTABLISHED 342K 22M ACCEPT all -- eth0 * 10.42.0.0/24 0.0.0.0/0 0 0 ACCEPT all -- eth0 eth0 0.0.0.0/0 0.0.0.0/0 0 0 REJECT all -- * eth0 0.0.0.0/0 0.0.0.0/0 reject-with icmp-port-unreachable 0 0 REJECT all -- eth0 * 0.0.0.0/0 0.0.0.0/0 reject-with icmp-port-unreachable Chain OUTPUT (policy ACCEPT 2650 packets, 184K bytes) pkts bytes target prot opt in out source destination -----@psyflat |
ich schnall irgendwie iptables nicht richtig. Ich hoffe jemand kann mir helfen.
Grüsse Euch freundlichst.