Sponsored Content
Full Discussion: Masq
Special Forums IP Networking Masq Post 17541 by minion on Sunday 17th of March 2002 02:14:11 PM
Old 03-17-2002
Masq

I have been trying to turn my slackware linux computer into a router/firewall. I have been going by the guide http://www.linuxdoc.org/HOWTO/IP-Mas...WTO/index.html . I set up their script, made sure it ran without errors, and added it to my local script. I also set eth1 as 192.168.0.1 and left my eth0 to get its ip from dhcp (since its the card connected to the net). After I had all that set, I plugged the computer into my cable modem, and then the uplink part of my hub. The computer got net connection on eth0 and its ip 192.168.0.1 on eth1. Then I plugged another one of my computers into the hub, 1 port past the uplink (where my linux computer is plugged in). I set the ip on the computer as 192.168.0.2, and the gateway as 192.168.0.1, and mask as 255.255.255.0 . For some reason, it wasn't able to ping 192.168.0.1 . After that, I turned my hub from uplink to normal, and then it was able to ping 192.168.0.1 but still didnt have net access. Im really confused now....Smilie

Last edited by minion; 03-17-2002 at 05:36 PM..
 
tgt-setup-lun(8)					      System Manager's Manual						  tgt-setup-lun(8)

NAME
tgt-setup-lun - creates a target, adds a device to the target and defines initiators that can connect to the target SYNOPSIS
tgt-setup-lun -d device -n target_name [initiator_IP1 initiator_IP2 ...] [-h] DESCRIPTION
Starts tgtd if necessary and creates a target according to the supplied target_name. The format of the target name is as follows: iqn.2001-04.com.<hostname>-<target_name> The target name must be unique. The script then adds the requested device to the target. If specific IP addresses are defined, it adds them to the list of allowed initia- tors for that target. If no IP addresses is defined, it defines that the target accepts any initiator. EXAMPLES
Create a target that uses /dev/sdb1 and allows connections only from 192.168.10.81: tgt-setup-lun -d /dev/sdb1 -n my_target 192.168.10.81 Create a target that uses /dev/sdb1 and allows connections only from 192.168.10.81 and 192.168.10.82: tgt-setup-lun -d /dev/sdb1 -n my_target 192.168.10.81 192.168.10.82 Create a target that uses /dev/sdb1 and allows connections from any initiator: tgt-setup-lun -d /dev/sdb1 -n my_target Display help: tgt-setup-lun -h AUTHOR
Written by Erez Zilber REPORTING BUGS
Report bugs to <stgt@vger.kernel.org> COPYRIGHT
Copyright (C) Voltaire Ltd. 2008. tgt-setup-lun(8)
All times are GMT -4. The time now is 08:36 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy