BREAKING CHANGE(proxies/nftables-proxy): remove nftables-proxy implementation, models, and utilities from the repository
This commit is contained in:
26
readme.md
26
readme.md
@@ -730,32 +730,6 @@ interface ISmartProxyOptions {
|
||||
}
|
||||
```
|
||||
|
||||
### NfTablesProxy Class
|
||||
|
||||
A standalone class for managing nftables NAT rules directly (Linux only, requires root):
|
||||
|
||||
```typescript
|
||||
import { NfTablesProxy } from '@push.rocks/smartproxy';
|
||||
|
||||
const nftProxy = new NfTablesProxy({
|
||||
fromPort: [80, 443],
|
||||
toPort: [8080, 8443],
|
||||
toHost: 'backend-server',
|
||||
protocol: 'tcp',
|
||||
preserveSourceIP: true,
|
||||
ipv6Support: true,
|
||||
useIPSets: true,
|
||||
qos: {
|
||||
enabled: true,
|
||||
maxRate: '1gbps'
|
||||
}
|
||||
});
|
||||
|
||||
await nftProxy.start(); // Apply nftables rules
|
||||
const status = await nftProxy.getStatus();
|
||||
await nftProxy.stop(); // Remove rules
|
||||
```
|
||||
|
||||
## 🐛 Troubleshooting
|
||||
|
||||
### Certificate Issues
|
||||
|
||||
Reference in New Issue
Block a user