[Gllug] Telnet from IP?

- Tethys tethys at gmail.com
Thu Nov 9 12:19:27 UTC 2006


On 11/9/06, Yashpal Nagar <yash at linux-delhi.org> wrote:

> This morning i am in different situation never before. I have two IPs
> eth0 192.168.200.111 and eth0:1 192.168.200.222
> I have to test a partiuclar port lets say 3306 of a host(10.33.0.67) in
> separate DMZ.
> I do telnet from the Linux box as
> telnet 10.33.0.67 3306
>
> it gets connected and validates firewall is Ok from the IP 192.168.200.111
>
> How should i check that secondary IP is also allowed in Firewall?
>
> I mean how can i change from IP address of telnet to the target box
> which is 10.33.0.67. if there is any other program to do same , pls let
> me know.

Add a dedicated route to that IP, specifying the source address to use:

    ip route add dev eth0 to 10.33.0.67/32 via 192.168.200.1 src 192.168.200.222

Tet
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list