ipmasqadm portfw -a ... stopped working?
we're trying to establish port forwarding so that a box internal
on our lan (192.168.1.2) can serve requests through the
firewall, from 'out there'.
i haven't even done apt-get upgrade lately -- and now
ipmasqadm 'portfw' isn't working. (i may have missed a step, but
/usr/share/doc/ didn't help ring any bells...)
# ipmasqadm portfw -a -P tcp -L [PUBLIC_IP] 7890 -R 192.168.1.2 80
# ipmasqadm portfw -ln
prot localaddr rediraddr lport rport pcnt pref
TCP [PUBLIC_IP] 192.168.1.2 7890 80 10 10
well, it LOOKS like it's up, but--
# nmap [PUBLIC_IP] -p 7890
Starting nmap V. 2.12 by Fyodor (fyodor@dhp.com, www.insecure.org/nmap/)
No ports open for host server ([public_ip])
Nmap run completed -- 1 IP address (1 host up) scanned in 0 seconds
which is bolstered by the fact that if i try to connect to
public port :7890 from outside i get deafening silence (unable
to connect to host).
is there another step i've forgotten? i'm on potato 2.2.17 and
this was working earlier...
"[PUBLIC_IP]" is, of course the client's actual ip address, if
you wondered... :)
--
DEBIAN NEWBIE TIP #73 from USM Bish <bish@nde.vsnl.net.in>
:
Looking for a way to CAPTURE A TRANSCRIPT OF SOME COMMANDS?
Easy! To catch anything from the screen when it scrolls by,
use "script":
script file-to-save-transcript-in.txt
<command>
<command>
exit <== don't forget this!
(It spawns another shell, and displays everything so you
can work -- but it also saves the output in the file at the
same time.) Then "pager file-*transcript*" to review it. Or
email it. Or edit it to include in a manual you're writing.
Also see http://newbieDoc.sourceForge.net/ ...
Reply to: