10-20-2001
Hi,
Have you checked that ip forwarding is enabled? This can be checked by running the following command:
cat /proc/sys/net/ipv4/ip_forward
If the result is 0 then you need to run:
echo 1 >> /proc/sys/net/ipv4/ip_forward
You'll also need to check that ip masquerading is enabled via your ipchains/iptables firewall.
The following is a basic rule to enable ip masq, where 192.168.1.0/24 is the range of ip addresses on your lan.
ipchains -A forward -i eth1 -s 192.168.1.0/24 -j MASQ
You might find the following tutorials useful for configuring the rest of you firewall rules:
http://www.linuxplanet.com/linuxplan...orials/1241/1/
http://www.linuxplanet.com/linuxplan...orials/2100/1/
Hope this helps
Andy
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I added a route entry with the route command. When I restart the network, this entry is gone. Therefore I wanted to edit the routing table by hand, but I didn't found a file to edit. Where is it?
I'm using Mandrake 8.1.
Thanks in advance. (2 Replies)
Discussion started by: sTorm
2 Replies
2. Cybersecurity
Hi,
Can someone give me the clue on how to capture network traffic at gateway.
Thanx (2 Replies)
Discussion started by: kayode
2 Replies
3. Infrastructure Monitoring
Hi all,
Got a strange one here, well not so much strange, different :-)
I need to work out if a server is particulary chatty, whether its talking / communicating heavily to a particular server, as Im planning to physically move the server to a different server, over a link. Hence the... (6 Replies)
Discussion started by: sbk1972
6 Replies
4. HP-UX
I Colleagues,
Somebody can say me how to monitoring traffic in the network. also I am interested in monitoring memory. if somebody to know a guide with command advanced in unix welcome for me.
Thank you for adcanced. (0 Replies)
Discussion started by: systemoper
0 Replies
5. IP Networking
Hi,
I would like to ask some networking solution regarding my work LAN and 3G usb network problem. I want to route my internet traffic to the 3G network and sometimes connect to some of my work network for ssh to configure some workstation or print something. Currently my problem is i can't... (0 Replies)
Discussion started by: jao_madn
0 Replies
6. Solaris
Solaris-9 server is having one primary IP 10.41.161.14 on qfe0 and 10.41.116.0 on qfe3:1. Traffic is going through virtual interface instead of physical interface. How should I force traffic to go with primary interface.
root@smtsrvn01:/# netstat -nr
Routing Table: IPv4
Destination ... (2 Replies)
Discussion started by: solaris_1977
2 Replies
7. Infrastructure Monitoring
If I would like to know what connection , data , traffic in a network port ( eth0 ) , what can I do ?
ps. because I always found the network is very slow , so I would like what the network port is doing .
Thanks
Login ID ust3 is currently in read-only mode for multiple infractions. Creating... (0 Replies)
Discussion started by: ust03
0 Replies
8. UNIX for Advanced & Expert Users
Hi All
I am resilience testing an application that is spread across multiple servers.
One thing I will need to do soon is throttle the network traffic for specific interfaces within the test cluster. Specifically, maybe make a connection take twice or three times as long to respond....
I... (3 Replies)
Discussion started by: bbq
3 Replies
9. Proxy Server
Hi guys
I need to setup server/router in my firm. We got from our ISP dedicated server in their data center. It has a static IP and it servers as replacement for out DSL connection. I configured our internal server to be border gateway and to connects to data center. "Remote" admin installed... (0 Replies)
Discussion started by: solaris_user
0 Replies
10. IP Networking
My son does homework on a school laptop. I was thinking about setting up a gateway on my home network, so that I can monitor web traffic and know if he is doing his homework without standing over his shoulder. Ideally I would like to use the Raspberry Pi Model b that I already have. However, I... (15 Replies)
Discussion started by: gandolf989
15 Replies
LEARN ABOUT DEBIAN
network-test
network-test(1) ifupdown-extra network-test(1)
NAME
network-test - check the network and test if everything is fine
SYNOPSIS
network-test
DESCRIPTION
The network-test program will test your system's network configuration using basic tests and providing both information (INFO), warnings
(WARN) and possible errors (ERR) based on the results of these tests. It will check and report on:
* Status of the network interfaces of the system including: link status,
IP addressing and number of transmitted packets and error rates.
* Accessibility to configured routes to external networks,
including the default network route, checking the routers configured
to give access to the network
* Proper host resolution, testing DNS resolution against a known host.
* Proper network connectivity, testing reachability of remote hosts using ICMP and simulating a web connections to a remote web
server (the web server used for the tests can be configured through the environment, see below)
The program does not need special privileges to run as it does not do any system change.
However, the behaviour of the program when running as an unprivileged user is not the same as running as system administrator (i.e. root).
If the program is run as system administrator it will try to run some tools that are only available to it to speed up some of the tests.
The program relies on the use of ip, netstat, ifconfig, arp and (when running as root) ethtool or mii-tool, to obtain information about the
system's networking configuration (status of available interfaces and configured network routes). It also uses ping, host and nc (netcat)
to do tests of the network connectivity and ensure that the host can connect to the Internet.
ENVIRONMENT
The program will, by default, check www.debian.org and its associated web server. If you want to use a different check host you can setup
the environment as follows:
CHECK_HOST
The name of a host to use when testing DNS resolution.
CHECK_IP_ADRESS
The IP address of the host defined in CHECK_HOST
CHECK_WEB_HOST
The web server to use for testing purposes when testing network connectivity.
CHECK_WEB_PORT
The web server port of server CHECK_WEB_HOST that will be used for testing.
EXIT STATUS
The program will exit with error (1) if any of the network checks fail.
BUGS
This program does not have super cow powers so it is unable to fix the errors by itself. It is also unable to detect if the network is
failing due to a local firewall policy been in place so make sure you check your system logs with dmesg (1) to detect if some of the active
tests are being dropped due to your local firewall.
Other known issues that might make the program not work reliable are:
* IPv6: The program does not yet explicitly handle IPv6 only hosts, some of the tests might be biased towards IPv4 and might fail in
IPv6 environments.
* Proxies: The program does not check network connectivity for hosts that connect through the Internet using a proxy gateway for
services. The program might report issues in hosts using proxies even when these might connect to the Internet properly through
proxied services.
* Firewall environments: some of the tests rely on direct connectivity to external hosts, which are tested using ICMP queries
(through the use of ping. These tests might fail in hosts installed in networking environments with firewalls that block outbound
ICMP communication.
SEE ALSO
ip (8), netstat (8), ifconfig (8), ethtool (8), mii-tool (8), ping (8), nc (1) and host (1).
AUTHOR
network-test was written by Javier Fernandez-Sanguino for the Debian GNU/Linux distribution.
COPYRIGHT AND LICENCE
Copyright (C) 2005-2011 Javier Fernandez-Sanguino <jfs@debian.org>.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option) any later version.
On Debian systems, a copy of the GNU General Public License may be found in /usr/share/common-licenses/GPL.
ifupdown-extra August 23 2011 network-test(1)