On Mon, 15 Jan 2001, Peter Kiem wrote:
> Got a question on the output of the command "ipchains -M -L"
>
> For example:
> prot expire source destination ports
> TCP 14:44.99 192.168.0.2 167.216.237.108 3276 (63030) -> 80
> UDP 00:03.90 192.168.0.2 203.22.70.2 3241 (62990) -> 53
>
> I understand the source and dest addresses and the port number after the "->"
> but what are the other ports listed?
The first port number is the port the masqueraded box things it is using.
The second number, the one in brackets, is the port number that the
masquerading box has mapped the connection to.
So if we do 'netstat -n' on 192.168.0.2 the connections might look like:
tcp 0 0 192.168.0.2:3276 167.216.237.108:80 ESTABLISHED
udp 0 0 192.168.0.2:3241 203.22.70.2:53 ESTABLISHED
But to the remote hosts, if we pretend your external IP is 1.2.3.4, the
connections might look like:
tcp 0 0 167.216.237.108:80 1.2.3.4:63030 ESTABLISHED
... and ...
udp 0 0 203.22.70.2:53 1.2.3.4:62990 ESTABLISHED
M.
--
WebCentral Pty Ltd Australia's #1 Internet Web Hosting Company
Level 1, 96 Lytton Road. Network Operations - Systems Engineer
PO Box 4169, East Brisbane. phone: +61 7 3249 2583
Queensland, Australia. pgp key id: 0x900E515F
_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list