Re: can i use Secondry ip on firewall
* partha <partha.s@comat.com> wrote:
> I am using firewall-jay and Squid.
>
> eth0 global ip
> eth1 local ip (192.168.3.1)
>
> Can i have secondary ip (192.168.4.1) on the eth1?
> And use the squid for this subnet to access
> internet?
I don't know what firewall-jay ist but sure you can bind a secondary
adress (or even more) to your interface.
Assuming a class-C subnet, the corresponding entry in
/etc/network/interfaces looks like this.
--< snip >--
auto eth1:0
iface eth1:0 inet static
address 192.168.4.1
netmask 255.255.255.0
--< /snap >--
Insert the above lines (omitting the snip,snap-lines) and do a
ifup eth1:0
After a squid restart, squid should also listen to this secondary
interface (unless it is bound to a specific address via the http_port
directive in squid.conf).
- sebastian
Reply to: