Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I have a Ubuntu box connected to a wifi router. This wifi router is connected to a d-link adsl modem/router. I am preparing this Ubuntu box to run a server that will use some special ports in UDP and TCP. I have setup this wifi router to put my Ubuntu box on a DMZ. So, the Ubuntu is on the DMZ of the wifi router, what means it is still on the local network of the D-link.

The big question is: how do I test, using Ubuntu, if these special ports are getting thru? I mean: there is some command I can type to check if a port is getting thru and certify that the computer is really on DMZ?

Part on the premise that the D-link is port-forwarding the ports correctly.

share|improve this question
add comment

1 Answer

up vote 4 down vote accepted

I would say tcpdump on the Ubuntu box, and netcat on anything that should act as the client.

share|improve this answer
    
any examples on how to use the commands? lets say I wanna test port 443. –  Digital Robot Dec 31 '11 at 3:20
    
tcpdump host <host> and port 443 and nc <host> 443. –  S19N Dec 31 '11 at 3:23
    
thanks. I will try that. –  Digital Robot Dec 31 '11 at 15:50
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.