exemen's blog
** Pronouns is way to written **
Category Archives: tcp/ip
example source routing using source ips
Occansion in Linux when running a VPN you want to generate traffic from the VPN server node. By default Linux uses the IP of the interface used to route a package. The might often complicated the routing tables required at client networks.
A solution to fix this issue is to use Linux source/policy routing. For example, for node with IP 192.168.10.1 and VPN server IP 172.29.148.1, route to subnet 192.168.9.0/24 out 172.29.148.1 via 172.29.148.2 with src (source) IP 192.168.10.1:
http://wiki.georgweiss.de/Linux/source_routing
ip route add 10.60.10.0/24 dev eth0 src 10.60.10.145 ip route add 10.60.10.0/24 dev eth0 src 10.60.10.145 table T1 ip route add default via 10.60.10.254 table T1 ip route add 10.30.82.0/24 dev eth1 src 10.30.82.35 ip route add 10.30.82.0/24 dev eth1 src 10.30.82.35 table T2 ip route add default via 10.30.82.254 table T2 ip route add default via 10.60.10.254 ip rule add from 10.60.10.145 table T1 ip rule add from 10.30.82.35 table T2 ip route add 10.30.82.0/24 dev eth1 table T1 ip route add 10.60.10.0/24 dev eth0 table T2 ip route add 127.0.0.0/8 dev lo table T1
Bandwidth Monitoring Tools for Ubuntu Users
Bandwidth in computer networking refers to the data rate supported by a
network connection or interface. One most commonly expresses bandwidth
in terms of bits per second (bps). The term comes from the field of
electrical engineering, where bandwidth represents the total distance or
range between the highest and lowest signals on the communication
channel (band).
Bandwidth represents the capacity of the
connection. The greater the capacity, the more likely that greater
performance will follow, though overall performance also depends on
other factors, such as latency.
Read more of this post