From the course: LPIC-2 Linux Engineer (202-450) Cert Prep

Unlock this course with a free trial

Join today to access over 24,400 courses taught by industry experts.

Configuring port forwarding with iptables

Configuring port forwarding with iptables - Linux Tutorial

From the course: LPIC-2 Linux Engineer (202-450) Cert Prep

Configuring port forwarding with iptables

- Need to expose a public server, but it's behind an iptable's NAT router? Stay tuned. We'll show you how to configure port forwarding. (gentle music) (digital beeps) - [Voiceover] You're watching ITProTV. (graphic swoosh) - Welcome back. We're here with more LPIC-2, and today Don's going to talk to us about configuring port forwarding. Can you give us an overview of what we'll talk about in this episode? - Sure, you know, anytime you've got a server that you want to be public, but it's on a private network, it's behind a NAT router, we've got to have some way to expose ports out there to the public world, and network address translation and port forwarding can do that. So in this episode, we're going to take a look at how we can configure iptables to do proper NAT routing and session tracking. And we're going to do port forwarding, which means we're going to have to set up a little bit of source and destination NAT to be able to get that all working properly. And by the end of the…

Contents