Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi i have slack10.2 kernel 2.4.31
i configured my eth1 to 192.168.0.1 mask255.255.255.0
and my winXP card to 192.168.0.2 with getway 192.168.0.1 mask 255.255.255.0
$IPTABLES -A FORWARD -i $EXTIF -o $INTIF -m state --state ESTABLISHED,RELATED -j ACCEPT
$IPTABLES -A FORWARD -i $INTIF -o $EXTIF -j ACCEPT
$IPTABLES -A FORWARD -j LOG
$IPTABLES -t nat -A POSTROUTING -o $EXTIF -j MASQUERADE
But its still didnt worked
i pinged each other ip and i got no response
destention unreachable
please help me ill appricate it very much
Btw i'm a newbie so please make it clear
night
i pinged each other ip and i got no response
destention unreachable
I'm assuming this is communication from the Windows machine to the Linux machine (and/or visa-versa). If so, how do you have the two computers connected?
I am also assuming that your Linux box has internet connectivity. If so, you will need to assign a DNS server entry on your windows machine so you can do lookups (when you get the connection problem solved), and thus use the internet. Your ISP's DNS server IP would be the best for this.
EDIT: You can find your DNS nameserver IP by typing 'cat /etc/resolv.conf' from the console.
Are you able to ping both machines when you're iptables script is not in used? I suspect the answer would be NO, as your script doesn't protect AT ALL direct access to the Linux box (which definitly is a problem as anyone can connect to your box from the outside network -- internet? -- to EXTIF / eth0).
you should consider using lines such as:
Code:
iptables -A INPUT -i $EXTIF -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -A INPUT -i $EXTIF -j DROP
If that were the case, wouldn't he get a Ping Timeout instead of a Destination Unreachable?
Besides, it sounds like he is having connection problems between his two computers, and not from the internet to the NAT box. Although good call on firewalling the EXTIF.
Depends... if the IP config of the machine that sends the echo request is really crap, then he can have a destination unreachable (wrong netmask or smtg else).
as an exemple, my eth1 192.168.1.80 has no cable pluged in and here's what i have:
root@lazarus:~# ping 192.168.1.1
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
From 192.168.1.2 icmp_seq=1 Destination Host Unreachable
From 192.168.1.2 icmp_seq=2 Destination Host Unreachable
you actually have a timeout only if you're able to send the packets...
Right, which is why I asked how the two computers are connected. If he has them directly connected using a standard patch cable and not a crossover, he would recieve this error.
2 nics on the linux machine
1 on the winXP
which i guess a regular cable
which i checked and working with the modem..
so i thought it would work with nic to nic
and abou the firewall ill fix it later i just want to do
step by step and first step is makeing the other computer to connect
thanks ahead
oh and from the windows box i'm getting ping timeout but i think it will say ping timeout even if its not connecting to anything..
thanks a lot
after ill get this cable ill see what's happning and i might come back :|
oh btw a friend told me there might be a driver/program who works like a crossover cable
do you know a thing like that ? or a way i can get it working with a regular cable ?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.