Port Forwarding in Linux

Status
Not open for further replies.

kiplingw

Wise, Aged Ars Veteran
161
Hey guys,<BR><BR>Is there a utility or some means of having my machine automatically forward a port on my LAN's router to it via UPnP or some other way? I can just as well login to the router and forward it manually, but the problem is that the machine is on DHCP so the IP changes. It would be a pain to have to change it every day or whenever the DHCP lease expires.<BR><BR>Kip
 

kiplingw

Wise, Aged Ars Veteran
161
After reading all of this, I almost shit myself. I immediately uninstalled igd and the UPnP framework as well.<BR><BR>There has got to be a better way of doing this. How does everybody else get stuff like aMule (eMule for Linux), Nicotine (SoulSeek for Linux), and other applications to work properly through their router when they are on DHCP?<BR><BR>Kip
 
<BLOCKQUOTE class="ip-ubbcode-quote"><div class="ip-ubbcode-quote-title">quote:</div><div class="ip-ubbcode-quote-content">Originally posted by Unrated:<BR><BLOCKQUOTE class="ip-ubbcode-quote"><div class="ip-ubbcode-quote-title">quote:</div><div class="ip-ubbcode-quote-content">My router doesn't support assigning IP to specific MAC address, I already checked. </div></BLOCKQUOTE><BR>Isn't this just done in your network config, independent of the router? </div></BLOCKQUOTE><BR><BR>He is getting his address via DHCP. If your router is advanced enough, you can have it assign the same address to the same MAC each time via the DHCP protocol. So even though Box A doesn't have a static ip in the network config, it still gets the same ip each time from the DHCP service.<BR><BR>Kiplingw:<BR>My router is a linux box. I use DHCP static leases. I like the control linux gives me over the firewall that is hard to find in off-the-shelf consumer routers.
 

SantosLHalper

Ars Scholae Palatinae
1,343
<BLOCKQUOTE class="ip-ubbcode-quote"><div class="ip-ubbcode-quote-title">quote:</div><div class="ip-ubbcode-quote-content">My router doesn't support assigning IP to specific MAC address, I already checked. </div></BLOCKQUOTE><BR><BR>That's not how static IPs work anyway. If you want a static IP, just turn off DHCP on your computer and give it whatever IP you want. Just make sure you give it an IP address outside the DHCP range. Nothing says the router has to give your computer anything.
 

kiplingw

Wise, Aged Ars Veteran
161
Hmm, whenever I assign a static IP address, I cannot contact anything outside of my LAN, even if I assign myself the IP of DNS.<BR><BR>For future reference, where is the main config file for configuring these sort of parameters for each adapter. Moreover, where is the list of adapters usually stored and what process on the system is responsible for changing it when I don't?<BR><BR>Kip
 
Status
Not open for further replies.