Adding Work Laptop to Home LAN with iptables firewall
I'm having trouble figuring out how to do this.
I've got a Work Laptop that I bring home once in a while and need to connect to the Internet. My Home LAN is running a firewall through a linux server using iptables.
The firewall uses a variable $INTNET="192.168.0.0/24" for the iptables commands but this excludes the work laptop ipaddress The laptop address is set by work IT and could be something like 162.97.xxx.yyy. (I can't set the laptop ipaddress but I suspect it changes say, once a month when I'm hooked to the work LAN) I know that I have to add the laptop to the hosts.allow file but the firewall won't let me connect and I assume it is because of the 192.168.0.0/24 allowed range
Here is the question....
Is there an elegant way to add the laptop ipaddress to variable $INTNET? Or do I have to add another iptables line including the laptop ipaddress everywhere in my firewall script?
I've tried $INTNET="192.168.0.0/24 162.97.xxx.yyy" and that didn't work. Perhaps it is my syntax?
I've looked through some forums and Google hasn't been my friend for this one...
Hoping to hear from someone.