Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Redhat/fedora/Suse [Wanna Drive With Debian]
Posts: 208
Rep:
iptables+FQDN
hello all
can i use fully qualified domain name or domain name only while applying
iptables firewall. i am going to use dnat so is this possible. my internet ip is 195.148.68.49 which is eth1 and the lan ip eth0 is 192.168.0.1. 192.168.0.200 is a webserver. Let's say i am hosting a web site named abc.com. on 192.168.0.200. This is a registered domain. then can i do the following??
Now let's say that i want to host one more site . Then in this case if my iptables rule will be in number then the first priority will be given to abc.com. Then i can't use DNAT for the other site. any solutions...
iptables handles the ip number forwarding to find the server, and the apache conf file handles the many virtual names in the server. Each virtual server definition will be for a different site, so rather than doing <VirtualHost 192.168.0.200> do <VirtualHost www.abc.com>
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.