Been bashing away at some netowrking in the linux world recently and coming up trumps on a couple matters...
Im setting up a network with one RHEL6.1 box that acts as a gateway/router into a different subnet it will also be my mail server (lets call it alexandria). alexandria is only required to route traffic from a backtrack machine (lets call it - Invader) to specific clients on a different subnet, only about 3 tops. to start with just one (lets call it victim)
alexandria can currently ping the other subnets gateway (lets suppose the address range is 10.14.x.x) and any other machines within the subnet.. it also has internet access via this subnet (i do not want internet connectivity on alexandria's subnet and it must remain in a different subnet to 'simulate' something coming over the internet.
to start with the theory to check my understanding (cos ultimately im a newb and this is way over my head but the job requires it... so im learning it rapid style

however alexandria's subnet needs to be told go to the 10.14.x.x and talk to the gateway in 10.14.x.x. so from what i understand that is two steps.
Invader goes to alexandria its gateway/router then gets passed on? and ip routing tables can be used for this?
hopefully that is all correct and makes sense?
so to the problems i have had are that the following files /strings dont seem to exist or so the terminal keeps telling me
- Code: Select all
/etc/sysconfig/network-scripts/route-ethX
#and
/etc/init.d/networking
#or
sudo /etc/init.d/networking
from what i understand this is a file i need to permanently edit the static route? can i just create my own?
and the i init.d script is to start the service for netowkring?
I have already enabled the ip forwarding services as checked and confirmed by
- Code: Select all
sysctl net.ipv4.ip_forward
net.ipv4.ip_forward = 1
thanks in advance
and i do hope this will eventually be of use to others learning this stuff.
- woops meant to put this in netowkring, sorry mods
