<br><br><div class="gmail_quote">On 6 December 2010 19:57, Laurence Southon <span dir="ltr"><<a href="mailto:laurence@southon.uk.net">laurence@southon.uk.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="im">On 06/12/10 18:34, Peter Childs wrote:<br>
><br>
><br>
> One for the box to get to the internet and one for the internet to get<br>
> to the box?<br>
><br>
> Which can be done. but if I remember correctly you need to use ip not<br>
> route. where you can do lost of fun and intresting things that you can't<br>
> normally do with route. (Such as use two gateways and two internet<br>
> connections if you wish)<br>
><br>
</div>I believe you can, using iproute2. Have read about it, not done it.<br>
<br>
However, would it not be simpler to add an NIC to the server and operate<br>
a different subnet with the Smoothwall box? Or alias an IP/network if<br>
there must be only one physical interface.<br>
<br>
Apache2 (or whatever) could be configured to listen just on that other IP.<br>
<br>
Regards,<br>
<br></blockquote></div><br>You can always run two ip address on one network card.<br><br>eth0 is the first interface to your network card...<br>eth0:0 is the next can can have a different ip, gateway etc etc<br><br>so<br>
<br>eth0 could be 192.168.2.1 with a subnet mask of 255.255.255.0<br>eth0:0 could be 192.168.3.1 with a subnet mask of 255.255.255.0<br><br>you then have two "networks" on the same set of cables quite useful when somone gives you a web camera with a set ip address that is not in your local area networks ip address range.<br>
<br>Its also used to allow machines to fail over so your could set up two shorewall boxes with a shared ip then using heartbeat, if one fails the other takes over. <br><br>These virtual network devices is something since I discovered it I've used quite a bit.<br>
<br>May not answer the question, but it might give you a clue on what to try....<br><br>Peter.<br><br><br>