Leigh
03-13-2003, 10:53 PM
Hi all,
Got an interesting problem here.
I'm setting up a firewall to share a dial-up connection onto a LAN. I think I can handle most of the IPTABLES stuff except for one or two issues:
I have two different connections - one when I dial the ISP, and one when they dial me. (long story). When the ISP dials me, I have a fixed IP address. I can quite happily NAT between inside and outside, but when I dial the ISP, using a different connection profile, I get a dynamic IP. How can I set up NAT rules in IPTABLES when I don't know the IP address? Alternatively, how can I find out the IP address on-the-fly? I'd like to use the ppp-up script or similar to set up IPTABLES rules, but i don't know how to set them up for a dynamic IP.
Other thing is: I have the box accepting a dial-in OK, but I've never set up dial-out before. Any pointers/gotchas? (This machine doesn't have a desktop or GUI or anything, so it's all gotta be done with scripts or command-line.)
Got an interesting problem here.
I'm setting up a firewall to share a dial-up connection onto a LAN. I think I can handle most of the IPTABLES stuff except for one or two issues:
I have two different connections - one when I dial the ISP, and one when they dial me. (long story). When the ISP dials me, I have a fixed IP address. I can quite happily NAT between inside and outside, but when I dial the ISP, using a different connection profile, I get a dynamic IP. How can I set up NAT rules in IPTABLES when I don't know the IP address? Alternatively, how can I find out the IP address on-the-fly? I'd like to use the ppp-up script or similar to set up IPTABLES rules, but i don't know how to set them up for a dynamic IP.
Other thing is: I have the box accepting a dial-in OK, but I've never set up dial-out before. Any pointers/gotchas? (This machine doesn't have a desktop or GUI or anything, so it's all gotta be done with scripts or command-line.)